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

Re: [PATCH] completion: complete remote names too

From
Junio C Hamano <gitster@pobox.com>
Date
May 30, 2018, 03:49 UTC
Message-ID
<xmqqefhtera4.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180525104842.2930-1-l.stelmach@samsung.com>
Łukasz Stelmach <l.stelmach@samsung.com> writes:
Show 6 quoted lines
> "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(-)
Soliciting comments from usual suspects around this area...
Thanks.
Show 13 quoted lines
> 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
Previous: Łukasz StelmachNext: Duy Nguyen
Message 2 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.