Skip to content

Commit

Permalink
completion: support git range-diff
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>

squash! WIP completion: support `git range-diff`

Revert "WIP completion: support `git range-diff`"

This reverts commit 2e7af652af9e53a19fd947f8ebe37a78043afa49.
  • Loading branch information
dscho committed Jun 30, 2018
1 parent 799da25 commit d05b54c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,20 @@ _git_push ()
__git_complete_remote_or_refspec
}

_git_range_diff ()
{
case "$cur" in
--*)
__gitcomp "
--creation-factor= --dual-color
$__git_diff_common_options
"
return
;;
esac
__git_complete_revlist
}

_git_rebase ()
{
__git_find_repo_path
Expand Down

0 comments on commit d05b54c

Please sign in to comment.