summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorBjörn Gustavsson <bgustavsson@gmail.com>2009-10-09 20:49:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-10-09 22:36:41 (GMT)
commite1c1a0674b5848eb3207a29d5513c9112c72d10c (patch)
tree5256a583e7d19100b1980e37861de57ac4b8e30d /contrib/completion
parente0d78059540aab2e6ff720e7c940d7244cc12c18 (diff)
downloadgit-e1c1a0674b5848eb3207a29d5513c9112c72d10c.zip
git-e1c1a0674b5848eb3207a29d5513c9112c72d10c.tar.gz
git-e1c1a0674b5848eb3207a29d5513c9112c72d10c.tar.bz2
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>
Diffstat (limited to 'contrib/completion')
-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 e482c8d..7cf8557 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 ;;