Skip to content

Commit 011710a

Browse files
committed
Merge branch 'tb/complete-rebase-i-edit-todo'
The command-line completion script (in contrib/) has been updated. * tb/complete-rebase-i-edit-todo: completion: offer '--edit-todo' during interactive rebase
2 parents 8c9155e + 09bb652 commit 011710a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)