Skip to content

Commit

Permalink
completion: difftool takes both revs and files
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Ramkumar Ramachandra authored and Junio C Hamano committed Jun 3, 2013
1 parent edca415 commit d8517cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ _git_difftool ()
return
;;
esac
__git_complete_file
__git_complete_revlist_file
}

__git_fetch_options="
Expand Down

0 comments on commit d8517cc

Please sign in to comment.