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

Re: [PATCH 3/3] completion: add dirstat and friends to diff options

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 8, 2009, 04:32 UTC
Message-ID
<20091008043242.GY9261@spearce.org>
In-Reply-To
<7vmy42pzvc.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> SZEDER G??bor <szeder@ira.uka.de> writes:
> 
> > On Wed, Oct 07, 2009 at 01:48:51AM -0700, Stephen Boyd wrote:
> >> +                     --dirstat --dirstat= --dirstat-by-file
> >> +                     --dirstat-by-file= --cumulative
> >
> > I'm a bit puzzled by having both --dirstat and --dirstat=, and
> > --dirstat-by-file and --dirstat-by-file=.  How do we complete similar
> > long options, where an argument and hence the = char is optional?
> 
> A similar example in "git init" completion (--shared vs --shared=) already
> exists, no?

I'm not sure why this is. It may just be historical accident, completing --shared vs. --shared= is ambiguous so you would need to type out the = anyway before trying to complete a value.

IIRC --shared= came about after --shared and its possible we just added the new option and didn't notice the duplicate.

-- 
Shawn.
Previous: Junio C HamanoNext: Stephen Boyd
Message 14 of 15 in “completion: fix alias listings with newlines”
  1. 1/3 completion: fix alias listings with newlinesStephen Boyd, Oct 7, 2009
  2. 2/3 completion: update am, commit, and logStephen Boyd, Oct 7, 2009
  3. 3/3 completion: add dirstat and friends to diff optionsStephen Boyd, Oct 7, 2009
  4. Junio C HamanoOct 7, 2009
  5. Junio C HamanoOct 7, 2009
  6. Johannes SixtOct 7, 2009
  7. Stephen BoydOct 7, 2009
  8. Shawn O. PearceOct 8, 2009
  9. Stephen BoydOct 8, 2009
  10. Johannes SixtOct 8, 2009
  11. Stephen BoydOct 8, 2009
  12. Johannes SixtOct 8, 2009
  13. Junio C HamanoOct 7, 2009
  14. Shawn O. PearceOct 8, 2009
  15. Stephen BoydOct 8, 2009

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.