summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2018-05-25 10:48:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-01 01:44:29 (GMT)
commit9cd4382ad56e9d7557e57ab1d85970a2702fd3e7 (patch)
treeeafc50548e8694e4d0a83d26355968306c3f8df3 /contrib/completion/git-completion.bash
parentfc54c1af3ec09bab8b8ea09768c2da4069b7f53e (diff)
downloadgit-9cd4382ad56e9d7557e57ab1d85970a2702fd3e7.zip
git-9cd4382ad56e9d7557e57ab1d85970a2702fd3e7.tar.gz
git-9cd4382ad56e9d7557e57ab1d85970a2702fd3e7.tar.bz2
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/completion/git-completion.bash')
-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 b09c8a2..a429915 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