summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Łukasz Stelmach <l.stelmach@samsung.com>2018-05-25 12:48:42 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-01 10:44:29 +0900
commit9cd4382ad56e9d7557e57ab1d85970a2702fd3e7 (patch)
treeeafc50548e8694e4d0a83d26355968306c3f8df3 /contrib
parentGit 2.17.1 (diff)
downloadtgif-9cd4382ad56e9d7557e57ab1d85970a2702fd3e7.tar.xz
completion: complete remote names too
"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>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index b09c8a2362..a42991586b 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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