Skip to content

Commit

Permalink
bash: add support for 'git replace'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Björn Gustavsson authored and Junio C Hamano committed Oct 9, 2009
1 parent e0d7805 commit e1c1a06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,11 @@ _git_remote ()
esac
}

_git_replace ()
{
__gitcomp "$(__git_refs)"
}

_git_reset ()
{
__git_has_doubledash && return
Expand Down Expand Up @@ -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 ;;
Expand Down

0 comments on commit e1c1a06

Please sign in to comment.