Skip to content

Commit d05b54c

Browse files
committed
completion: support git range-diff
Tab completion of `git range-diff` is very convenient, especially given that the revision arguments to specify the commit ranges to compare are typically more complex than, say, your grandfather's `git log` arguments. Signed-off-by: Johannes Schindelin <[email protected]> squash! WIP completion: support `git range-diff` Revert "WIP completion: support `git range-diff`" This reverts commit 2e7af652af9e53a19fd947f8ebe37a78043afa49.
1 parent 799da25 commit d05b54c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,20 @@ _git_push ()
19761976
__git_complete_remote_or_refspec
19771977
}
19781978

1979+
_git_range_diff ()
1980+
{
1981+
case "$cur" in
1982+
--*)
1983+
__gitcomp "
1984+
--creation-factor= --dual-color
1985+
$__git_diff_common_options
1986+
"
1987+
return
1988+
;;
1989+
esac
1990+
__git_complete_revlist
1991+
}
1992+
19791993
_git_rebase ()
19801994
{
19811995
__git_find_repo_path

0 commit comments

Comments
 (0)