diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2022-10-14 16:57:43 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2022-10-14 14:01:53 +0000 |
commit | 7c25d1a895e600808f58ec8d808050c2ecb6e78c (patch) | |
tree | d785866f636f3d4bb8cbe712d0a80edec7831e6e /src/plugins/git | |
parent | 8db0d3b0ff5fd5ea191928d14441e13f387cb83a (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.cpp | 3 |
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; |