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

Re: [PATCH] bash completion: add basic support for git-reflog

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 22, 2010, 17:20 UTC
Message-ID
<20101122172057.GC2084@burratino>
In-Reply-To
<1290445749-4884-1-git-send-email-rctay89@gmail.com>
Tay Ray Chuan wrote:
> Gábor: hmm, it really seems that reflog is treated as plumbing - no completion
> is done for it.

Probably because it is listed as such in command-list.txt. I guess the user-facing command for reflog expiration is meant to be "git gc"?

Show 9 quoted lines
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1632,6 +1631,18 @@ _git_rebase ()
>  	__gitcomp "$(__git_refs)"
>  }
>  
> +_git_reflog ()
> +{
> +	local subcommands="show delete expire"

People really do seem to use these commands directly, so I'm all for this.

I wish there were a way to easily point the end user from "git reflog show" to "git log --walk-reflogs" (to make the list of other accepted options more obvious) but I can't think of one.

Regards, Jonathan

Previous: Tay Ray Chuan
Message 5 of 5 in “bash completion: add basic support for git-reflog”
  1. bash completion: add basic support for git-reflogTay Ray Chuan, Nov 20, 2010
  2. SZEDER GáborNov 22, 2010
  3. Tay Ray ChuanNov 22, 2010
  4. bash completion: add basic support for git-reflogTay Ray Chuan, Nov 22, 2010
  5. Jonathan NiederNov 22, 2010

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.