Merge branch 'ls/complete-remote-update-names'
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2018 20:22:39 +0000 (13:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2018 20:22:39 +0000 (13:22 -0700)
"git remote update" can take both a single remote nickname and a
nickname for remote groups, and the completion script (in contrib/)
has been taught about it.

* ls/complete-remote-update-names:
completion: complete remote names too

contrib/completion/git-completion.bash
index dc2b04603dddd274433c6fb34582bba0142f52d1..bc31e8973b25a8609fd9a6cb5eb4279de3eb332d 100644 (file)
@@ -2362,7 +2362,7 @@ _git_remote ()
                __gitcomp_builtin remote_update
                ;;
        update,*)
-               __gitcomp "$(__git_get_config_variables "remotes")"
+               __gitcomp "$(__git_remotes) $(__git_get_config_variables "remotes")"
                ;;
        set-url,--*)
                __gitcomp_builtin remote_set-url