Skip to content

Commit 09bb652

Browse files
t-bgitster
authored andcommitted
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>
1 parent a17c56c commit 09bb652

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

contrib/completion/git-completion.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,10 @@ _git_push ()
16671667
_git_rebase ()
16681668
{
16691669
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
16711674
__gitcomp "--continue --skip --abort"
16721675
return
16731676
fi

0 commit comments

Comments
 (0)