diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-06-02 19:33:41 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-03 10:30:04 -0700 |
commit | d8517cc6670d4ba18e9b77a83b2481aec0edbc32 (patch) | |
tree | b7238f0a241ac6a5b3f18c5543f3f3bc6f75ccf8 /contrib/completion | |
parent | edca4152560522a431a51fc0a06147fc680b5b18 (diff) | |
download | git-d8517cc6670d4ba18e9b77a83b2481aec0edbc32.tar.gz git-d8517cc6670d4ba18e9b77a83b2481aec0edbc32.tar.xz |
completion: difftool takes both revs and files
'git difftool' is clearly a frontend to 'git diff' and is used in
exactly the same way, but it uses a misleadingly named completion
function __git_complete_file. It happens to work only because it
calls __git_complete_revlist_file that completes both revs and
paths.
Change it to use __git_complete_revlist_file, just like 'git diff'.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 1c35eef56..1b4b0f95a 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1294,7 +1294,7 @@ _git_difftool () return ;; esac - __git_complete_file + __git_complete_revlist_file } __git_fetch_options=" |