Skip to content

Commit 40ee939

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 8ee93d3 commit 40ee939

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
@@ -1924,6 +1924,20 @@ _git_push ()
19241924
__git_complete_remote_or_refspec
19251925
}
19261926

1927+
_git_range_diff ()
1928+
{
1929+
case "$cur" in
1930+
--*)
1931+
__gitcomp "
1932+
--creation-factor= --dual-color
1933+
$__git_diff_common_options
1934+
"
1935+
return
1936+
;;
1937+
esac
1938+
__git_complete_revlist
1939+
}
1940+
19271941
_git_rebase ()
19281942
{
19291943
__git_find_repo_path

0 commit comments

Comments
 (0)