Skip to content

Commit

Permalink
Merge branch 'tb/complete-sequencing'
Browse files Browse the repository at this point in the history
The bash completion script (in contrib/) learned a few options that
"git revert" takes.

* tb/complete-sequencing:
  completion: suggest sequencer commands for revert
  • Loading branch information
Junio C Hamano committed Jun 11, 2015
2 parents 43262d8 + 956352b commit e356158
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 @@ -2282,6 +2282,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 e356158

Please sign in to comment.