completion: suggest sequencer commands for revert
[gitweb.git] / contrib / completion / git-completion.bash
index 5944c824abe9aa4dee8b63b0e91a047125722b22..83f90a048cea28027088405493adfb6d78a9d445 100644 (file)
@@ -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"