Skip to content

Commit ff7e96b

Browse files
committed
Merge branch 'jk/complete-merge-pull' into maint
The completion scripts (in contrib/) did not know about quite a few options that are common between "git merge" and "git pull", and a couple of options unique to "git merge". * jk/complete-merge-pull: completion: add missing options for git-merge completion: add a note that merge options are shared
2 parents fbfdf13 + 8fee872 commit ff7e96b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,9 +1472,12 @@ _git_log ()
14721472
__git_complete_revlist
14731473
}
14741474

1475+
# Common merge options shared by git-merge(1) and git-pull(1).
14751476
__git_merge_options="
14761477
--no-commit --no-stat --log --no-log --squash --strategy
14771478
--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
14781481
"
14791482

14801483
_git_merge ()
@@ -1483,7 +1486,8 @@ _git_merge ()
14831486

14841487
case "$cur" in
14851488
--*)
1486-
__gitcomp "$__git_merge_options"
1489+
__gitcomp "$__git_merge_options
1490+
--rerere-autoupdate --no-rerere-autoupdate --abort"
14871491
return
14881492
esac
14891493
__gitcomp_nl "$(__git_refs)"

0 commit comments

Comments
 (0)