git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] completion: complete remote names too

From
Łukasz Stelmach <l.stelmach@samsung.com>
Date
May 25, 2018, 10:48 UTC
Message-ID
<20180525104842.2930-1-l.stelmach@samsung.com>
In-Reply-To
<CGME20180525104848eucas1p28c88d657362066ea26d4eedaaef71f90@eucas1p2.samsung.com>
"git remote update" accepts both groups and single remotes.
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
---
 contrib/completion/git-completion.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 961a0ed76..fb05bb2f9 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2632,7 +2632,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
-- 
2.11.0
Next: Junio C Hamano
Message 1 of 4 in “completion: complete remote names too”
  1. completion: complete remote names tooŁukasz Stelmach, May 25, 2018
  2. Junio C HamanoMay 30, 2018
  3. Duy NguyenMay 30, 2018
  4. Łukasz StelmachJun 4, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.