Merge branch 'js/rebase-i-clean-up-upon-continue-to-skip'
[gitweb.git] / contrib / completion / git-completion.bash
index bfc74e9d57a5293fce39362c68e7490888ec08e6..c97c648d7e07fe9eeea1b1afff1ce55ac730cf4f 100644 (file)
@@ -1108,7 +1108,7 @@ _git_commit ()
 
        case "$cur" in
        --cleanup=*)
-               __gitcomp "default strip verbatim whitespace
+               __gitcomp "default scissors strip verbatim whitespace
                        " "" "${cur##--cleanup=}"
                return
                ;;
@@ -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"