summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Gustavsson <bgustavsson@gmail.com>2009-10-09 22:49:06 +0200
committerJunio C Hamano <gitster@pobox.com>2009-10-09 15:36:41 -0700
commite1c1a0674b5848eb3207a29d5513c9112c72d10c (patch)
tree5256a583e7d19100b1980e37861de57ac4b8e30d
parente0d78059540aab2e6ff720e7c940d7244cc12c18 (diff)
downloadgit-e1c1a0674b5848eb3207a29d5513c9112c72d10c.tar.gz
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>
-rwxr-xr-xcontrib/completion/git-completion.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index e482c8d076..7cf8557468 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 ;;