Skip to content

Commit

Permalink
completion: suggest sequencer commands for revert
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
Acked-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Thomas Braun authored and Junio C Hamano committed Jun 1, 2015
1 parent 3d4a3ff commit 956352b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2292,6 +2292,11 @@ _git_reset ()

_git_revert ()
{
local dir="$(__gitdir)"
if [ -f "$dir"/REVERT_HEAD ]; then
__gitcomp "--continue --quit --abort"
return
fi
case "$cur" in
--*)
__gitcomp "--edit --mainline --no-edit --no-commit --signoff"
Expand Down

0 comments on commit 956352b

Please sign in to comment.