From: Björn Gustavsson Date: Fri, 9 Oct 2009 20:49:06 +0000 (+0200) Subject: bash: add support for 'git replace' X-Git-Tag: v1.6.5~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1c1a0674b5848eb3207a29d5513c9112c72d10c;p=git.git bash: add support for 'git replace' Signed-off-by: Björn Gustavsson 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 e482c8d07..7cf855746 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1798,6 +1798,11 @@ _git_remote () esac } +_git_replace () +{ + __gitcomp "$(__git_refs)" +} + _git_reset () { __git_has_doubledash && return @@ -2166,6 +2171,7 @@ _git () push) _git_push ;; rebase) _git_rebase ;; remote) _git_remote ;; + replace) _git_replace ;; reset) _git_reset ;; revert) _git_revert ;; rm) _git_rm ;;