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

Re: [PATCH] git-completion: offer references for 'git reflog'

From
MSMichael Schubert <mschub@elegosoft.com>
Date
Oct 4, 2011, 08:48 UTC
Message-ID
<4E8AC85A.2070009@elegosoft.com>
In-Reply-To
<4E7F05A6.30505@elegosoft.com>
On 09/25/2011 12:42 PM, Michael Schubert wrote:
Show 21 quoted lines
> 'git reflog <ref>' is a valid command, therefore offer reference
> completion.
> 
> Signed-off-by: Michael Schubert <mschub@elegosoft.com>
> ---
>  contrib/completion/git-completion.bash |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 8648a36..63d0f08 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1774,7 +1774,7 @@ _git_reflog ()
>  	local subcommand="$(__git_find_on_cmdline "$subcommands")"
>  
>  	if [ -z "$subcommand" ]; then
> -		__gitcomp "$subcommands"
> +		__gitcomp "$subcommands $(__git_refs)"
>  	else
>  		__gitcomp "$(__git_refs)"
>  	fi
Ping.?
Previous: Michael SchubertNext: Junio C Hamano
Message 2 of 4 in “git-completion: offer references for 'git reflog'”
  1. git-completion: offer references for 'git reflog'Michael Schubert, Sep 25, 2011
  2. Michael SchubertOct 4, 2011
  3. Junio C HamanoOct 4, 2011
  4. Michael SchubertOct 4, 2011

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.