completion: offer '--edit-todo' during interactive rebase

Helped-by: John Keeping <john@keeping.me.uk> Helped-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Braun committed Aug 5, 2015 at 15:40 UTC 09bb6520d416a0d0d91ca646dae2d23d91c95ba8
1 file changed +4 -1
contrib/completion/git-completion.bash
+4 -1
@@ -1667,7 +1667,10 @@ _git_push ()
1667 _git_rebase ()
1668 {
1669 local dir="$(__gitdir)"
1670 - if [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ]; then
1670 + if [ -f "$dir"/rebase-merge/interactive ]; then
1671 + __gitcomp "--continue --skip --abort --edit-todo"
1672 + return
1673 + elif [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ]; then
1674 __gitcomp "--continue --skip --abort"
1675 return
1676 fi