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

Re: [PATCH] bash: support 'git notes' and its subcommands

From
Johan Herland <johan@herland.net>
Date
Jan 28, 2010, 10:02 UTC
Message-ID
<201001281102.24195.johan@herland.net>
In-Reply-To
<20100128033039.GB15202@neumann>
On Thursday 28 January 2010, SZEDER Gábor wrote:
Show 23 quoted lines
> Hi Johan,
> 
> On Thu, Jan 28, 2010 at 02:23:35AM +0100, Johan Herland wrote:
> > On Thursday 28 January 2010, SZEDER Gábor wrote:
> > > ... and it will offer refs unless after -m or -F, because these two
> > > options require a non-ref argument.
> >
> > Maybe-NAK.
> >
> > The patch is probably good in itself, and the intent is certainly good,
> > but we're currently discussing deprecating the -m/-F options to "git
> > notes edit" (see
> > http://article.gmane.org/gmane.comp.version-control.git/138215), and if
> > that's where we go, there's no point "encouraging" their use by adding
> > bash- completions for them...
> 
> -m and -F are not encouraged, because they are not offered (short
> options in general are never offered by the completion script).
> However, their presence or absence is taken into account to offer
> something sensible: refs after 'git notes edit <TAB>', files after
> 'git notes edit -F <TAB>'.  Note, that I chose 'edit' here, because
> currently it's the only subcommand taking '-F', but it will actually
> work the same way with the upcoming 'add' and 'append' subcommands.
Ah, ok, then. I revoke my NAK.
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: SZEDER Gábor
Message 5 of 5 in “bash: support 'git notes' and its subcommands”
  1. bash: support 'git notes' and its subcommandsSZEDER Gábor, Jan 28, 2010
  2. Shawn O. PearceJan 28, 2010
  3. Johan HerlandJan 28, 2010
  4. SZEDER GáborJan 28, 2010
  5. Johan HerlandJan 28, 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.