Skip to content

Commit e356158

Browse files
committed
Merge branch 'tb/complete-sequencing'
The bash completion script (in contrib/) learned a few options that "git revert" takes. * tb/complete-sequencing: completion: suggest sequencer commands for revert
2 parents 43262d8 + 956352b commit e356158

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
@@ -2282,6 +2282,11 @@ _git_reset ()
22822282

22832283
_git_revert ()
22842284
{
2285+
local dir="$(__gitdir)"
2286+
if [ -f "$dir"/REVERT_HEAD ]; then
2287+
__gitcomp "--continue --quit --abort"
2288+
return
2289+
fi
22852290
case "$cur" in
22862291
--*)
22872292
__gitcomp "--edit --mainline --no-edit --no-commit --signoff"

0 commit comments

Comments
 (0)