completion: complete "unstuck" `git push --recurse-submodules`
authorJohn Keeping <john@keeping.me.uk>
Tue, 22 Jul 2014 18:24:56 +0000 (19:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jul 2014 20:21:07 +0000 (13:21 -0700)
Since the argument to `--recurse-submodules` is mandatory, it does not
need to be stuck to the option with `=`.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index 019026efcbc5876d7aa3890eab5078a8bfbe2f7c..b27f385adc3b9456379d15fbc208bb633c0f5d27 100644 (file)
@@ -1617,6 +1617,11 @@ _git_push ()
        --repo)
                __gitcomp_nl "$(__git_remotes)"
                return
+               ;;
+       --recurse-submodules)
+               __gitcomp "$__git_push_recurse_submodules"
+               return
+               ;;
        esac
        case "$cur" in
        --repo=*)