bash: add support for 'git replace'
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Björn Gustavsson committed
Oct 9, 2009 at 22:49 UTC
e1c1a0674b5848eb3207a29d5513c9112c72d10c
1 file changed
+6
contrib/completion/git-completion.bash
+6
@@ -1798,6 +1798,11 @@ _git_remote ()
1798
esac
1799
}
1800
1801
+_git_replace ()
1802
+{
1803
+ __gitcomp "$(__git_refs)"
1804
+}
1805
+
1806
_git_reset ()
1807
{
1808
__git_has_doubledash && return
@@ -2166,6 +2171,7 @@ _git ()
2171
push) _git_push ;;
2172
rebase) _git_rebase ;;
2173
remote) _git_remote ;;
2174
+ replace) _git_replace ;;
2175
reset) _git_reset ;;
2176
revert) _git_revert ;;
2177
rm) _git_rm ;;