aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2022-10-14 16:57:43 +0300
committerOrgad Shaneh <orgads@gmail.com>2022-10-14 14:01:53 +0000
commit7c25d1a895e600808f58ec8d808050c2ecb6e78c (patch)
treed785866f636f3d4bb8cbe712d0a80edec7831e6e /src/plugins/git
parent8db0d3b0ff5fd5ea191928d14441e13f387cb83a (diff)
Git: Pass only files after -- on Blame
It works, but is likely to break at some point. Change-Id: I97952a7cb6cd3569adc694db7537fab807bda0ea Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/git')
-rw-r--r--src/plugins/git/gitclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index 5996d7f494..d3ffbac050 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -1354,9 +1354,10 @@ VcsBaseEditorWidget *GitClient::annotate(
editor->setWorkingDirectory(workingDir);
QStringList arguments = {"blame", "--root"};
- arguments << argWidget->arguments() << "--" << file;
+ arguments << argWidget->arguments();
if (!revision.isEmpty())
arguments << revision;
+ arguments << "--" << file;
editor->setDefaultLineNumber(lineNumber);
vcsExec(workingDir, arguments, editor);
return editor;