Skip to content

Commit 8fee872

Browse files
johnkeepinggitster
authored andcommitted
completion: add missing options for git-merge
The options added to __git_merge_options are those that git-pull passes to git-merge, since that variable is used by both commands. Those added directly in _git_merge() are specific to git-merge and are not passed thru from git-pull. Reported-by: Haralan Dobrev <[email protected]> Signed-off-by: John Keeping <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6d2b06f commit 8fee872

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
@@ -1476,6 +1476,8 @@ _git_log ()
14761476
__git_merge_options="
14771477
--no-commit --no-stat --log --no-log --squash --strategy
14781478
--commit --stat --no-squash --ff --no-ff --ff-only --edit --no-edit
1479+
--verify-signatures --no-verify-signatures --gpg-sign
1480+
--quiet --verbose --progress --no-progress
14791481
"
14801482

14811483
_git_merge ()
@@ -1484,7 +1486,8 @@ _git_merge ()
14841486

14851487
case "$cur" in
14861488
--*)
1487-
__gitcomp "$__git_merge_options"
1489+
__gitcomp "$__git_merge_options
1490+
--rerere-autoupdate --no-rerere-autoupdate --abort"
14881491
return
14891492
esac
14901493
__gitcomp_nl "$(__git_refs)"

0 commit comments

Comments
 (0)