From: Johannes Schindelin Date: Mon, 13 Aug 2018 11:33:27 +0000 (-0700) Subject: completion: support `git range-diff` X-Git-Tag: v2.19.0-rc0~15^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7190a67eab181ebfbf61f4c8afaa3a149f685853;p=git 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, what is normally passed to `git log`. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 94c95516eb..3d4ec34323 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -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