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>
Ramkumar Ramachandra committed
Jun 2, 2013 at 19:33 UTC
d8517cc6670d4ba18e9b77a83b2481aec0edbc32
1 file changed
+1
-1
contrib/completion/git-completion.bash
+1
-1
@@ -1294,7 +1294,7 @@ _git_difftool ()
1294
return
1295
;;
1296
esac
1297
- __git_complete_file
1297
+ __git_complete_revlist_file
1298
}
1299
1300
__git_fetch_options="