diff options
author | Björn Gustavsson <bgustavsson@gmail.com> | 2009-10-10 00:49:06 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-10 02:36:41 +0400 |
commit | e1c1a0674b5848eb3207a29d5513c9112c72d10c (patch) | |
tree | 5256a583e7d19100b1980e37861de57ac4b8e30d | |
parent | e0d78059540aab2e6ff720e7c940d7244cc12c18 (diff) |
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-x | contrib/completion/git-completion.bash | 6 |
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 ;; |