Skip to content

Commit 9cd4382

Browse files
Łukasz Stelmachgitster
authored andcommitted
completion: complete remote names too
"git remote update" accepts both groups and single remotes. Signed-off-by: Łukasz Stelmach <[email protected]> Reviewed-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fc54c1a commit 9cd4382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2631,7 +2631,7 @@ _git_remote ()
26312631
__gitcomp_builtin remote_update
26322632
;;
26332633
update,*)
2634-
__gitcomp "$(__git_get_config_variables "remotes")"
2634+
__gitcomp "$(__git_remotes) $(__git_get_config_variables "remotes")"
26352635
;;
26362636
set-url,--*)
26372637
__gitcomp_builtin remote_set-url

0 commit comments

Comments
 (0)