completion: complete remote names too
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 25 May 2018 10:48:42 +0000 (12:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Jun 2018 01:44:29 +0000 (10:44 +0900)
"git remote update" accepts both groups and single remotes.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Reviewed-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index b09c8a23626b431a0cb97f6f7f930cccce25bf07..a42991586b555dfabf7aeeb1c73a4a9d5209e623 100644 (file)
@@ -2631,7 +2631,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