Merge branch 'tb/complete-sequencing'
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2015 16:29:59 +0000 (09:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2015 16:29:59 +0000 (09:29 -0700)
The bash completion script (in contrib/) learned a few options that
"git revert" takes.

* tb/complete-sequencing:
completion: suggest sequencer commands for revert

contrib/completion/git-completion.bash
index bfc74e9d57a5293fce39362c68e7490888ec08e6..3c00acda630b0baadd06123381f0ae3cb7d7d1c1 100644 (file)
@@ -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"