From: SZEDER Gábor Date: Thu, 27 Nov 2008 13:35:53 +0000 (+0100) Subject: bash: offer refs instead of filenames for 'git revert' X-Git-Tag: v1.6.1-rc1~5^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c07838371b116251b6c4bc62a2ba64109baf74f1;p=git.git bash: offer refs instead of filenames for 'git revert' The completion script for 'git revert' currently offers options and filenames. However, 'git revert' doesn't take any filenames from the command line, but a single commit. Therefore, it's more sane to offer refs instead. Signed-off-by: SZEDER Gábor Acked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index bec09bdd6..554a03ff4 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1344,7 +1344,7 @@ _git_revert () return ;; esac - COMPREPLY=() + __gitcomp "$(__git_refs)" } _git_rm ()