Skip to content

Commit e1c1a06

Browse files
bjornggitster
authored andcommitted
bash: add support for 'git replace'
Signed-off-by: Björn Gustavsson <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e0d7805 commit e1c1a06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,6 +1798,11 @@ _git_remote ()
17981798
esac
17991799
}
18001800

1801+
_git_replace ()
1802+
{
1803+
__gitcomp "$(__git_refs)"
1804+
}
1805+
18011806
_git_reset ()
18021807
{
18031808
__git_has_doubledash && return
@@ -2166,6 +2171,7 @@ _git ()
21662171
push) _git_push ;;
21672172
rebase) _git_rebase ;;
21682173
remote) _git_remote ;;
2174+
replace) _git_replace ;;
21692175
reset) _git_reset ;;
21702176
revert) _git_revert ;;
21712177
rm) _git_rm ;;

0 commit comments

Comments
 (0)