Skip to content

Commit d8517cc

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent edca415 commit d8517cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ _git_difftool ()
12941294
return
12951295
;;
12961296
esac
1297-
__git_complete_file
1297+
__git_complete_revlist_file
12981298
}
12991299

13001300
__git_fetch_options="

0 commit comments

Comments
 (0)