Skip to content

Commit 956352b

Browse files
t-bgitster
authored andcommitted
completion: suggest sequencer commands for revert
Signed-off-by: Thomas Braun <[email protected]> Acked-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3d4a3ff commit 956352b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,6 +2292,11 @@ _git_reset ()
22922292

22932293
_git_revert ()
22942294
{
2295+
local dir="$(__gitdir)"
2296+
if [ -f "$dir"/REVERT_HEAD ]; then
2297+
__gitcomp "--continue --quit --abort"
2298+
return
2299+
fi
22952300
case "$cur" in
22962301
--*)
22972302
__gitcomp "--edit --mainline --no-edit --no-commit --signoff"

0 commit comments

Comments
 (0)