]> granicus.if.org Git - git/commitdiff
completion: add missing options for git-merge
authorJohn Keeping <john@keeping.me.uk>
Thu, 22 May 2014 13:58:38 +0000 (14:58 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 May 2014 19:27:50 +0000 (12:27 -0700)
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 <hkdobrev@gmail.com>
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index ff97c200ee380143145eaee2c9f59d40537b1447..019026efcbc5876d7aa3890eab5078a8bfbe2f7c 100644 (file)
@@ -1476,6 +1476,8 @@ _git_log ()
 __git_merge_options="
        --no-commit --no-stat --log --no-log --squash --strategy
        --commit --stat --no-squash --ff --no-ff --ff-only --edit --no-edit
+       --verify-signatures --no-verify-signatures --gpg-sign
+       --quiet --verbose --progress --no-progress
 "
 
 _git_merge ()
@@ -1484,7 +1486,8 @@ _git_merge ()
 
        case "$cur" in
        --*)
-               __gitcomp "$__git_merge_options"
+               __gitcomp "$__git_merge_options
+                       --rerere-autoupdate --no-rerere-autoupdate --abort"
                return
        esac
        __gitcomp_nl "$(__git_refs)"