Skip to content

Commit 7655fa7

Browse files
felipecgitster
authored andcommitted
completion: add more cherry-pick options
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e2af9e3 commit 7655fa7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,14 @@ _git_cherry ()
11241124

11251125
_git_cherry_pick ()
11261126
{
1127+
local dir="$(__gitdir)"
1128+
if [ -f "$dir"/CHERRY_PICK_HEAD ]; then
1129+
__gitcomp "--continue --quit --abort"
1130+
return
1131+
fi
11271132
case "$cur" in
11281133
--*)
1129-
__gitcomp "--edit --no-commit"
1134+
__gitcomp "--edit --no-commit --signoff --strategy= --mainline"
11301135
;;
11311136
*)
11321137
__gitcomp_nl "$(__git_refs)"

0 commit comments

Comments
 (0)