completion: add completion for --recurse-submodules=only
authorCornelius Weig <cornelius.weig@tngtech.com>
Wed, 1 Feb 2017 23:07:53 +0000 (00:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2017 23:16:50 +0000 (15:16 -0800)
Command completion for 'git-push --recurse-submodules' already knows to
complete some modes. However, the recently added mode 'only' is missing.

Adding 'only' to the recognized modes completes the list of non-trivial
modes.

Signed-off-by: Cornelius Weig <cornelius.weig@tngtech.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index 78fe5b7f5c793c864614a6f1738be207eecee2c8..c5207cf55e334adb5f1fd213b42b6e3cde5e8ef2 100644 (file)
@@ -1674,7 +1674,7 @@ _git_pull ()
        __git_complete_remote_or_refspec
 }
 
-__git_push_recurse_submodules="check on-demand"
+__git_push_recurse_submodules="check on-demand only"
 
 __git_complete_force_with_lease ()
 {