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~15^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c07838371b116251b6c4bc62a2ba64109baf74f1 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 bec09bdd62..554a03ff4f 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 ()