completion: offer '--edit-todo' during interactive rebase
[gitweb.git] / contrib / completion / git-completion.bash
index c97c648d7e07fe9eeea1b1afff1ce55ac730cf4f..087771bb89d05b0353f6759cfd03da3a953a798b 100644 (file)
@@ -1667,7 +1667,10 @@ _git_push ()
 _git_rebase ()
 {
        local dir="$(__gitdir)"
-       if [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ]; then
+       if [ -f "$dir"/rebase-merge/interactive ]; then
+               __gitcomp "--continue --skip --abort --edit-todo"
+               return
+       elif [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ]; then
                __gitcomp "--continue --skip --abort"
                return
        fi