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

Re: [PATCH] Add an optional argument for --color options

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 15, 2010, 06:02 UTC
Message-ID
<7vsk93nijl.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100215052139.GH3336@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> It's historical. The diff option parser predates parse-options by quite
> a bit, and was never converted. Pierre made some attempts at converting
> it and the revision parser some time back, and we ended up with the more
> iterative approach (you can step through each argument with
> parse-options, and then alternatively feed it to the revision and diff
> options parser).
>
> I don't remember if there were any technical limitations,...

I think one of the biggie we didn't solve was what to do with the cascading options table (e.g. log family use both diff and revision in addition to their own). The design needs to cover both parsing and also the help text.

Previous: Jeff KingNext: Junio C Hamano
Message 9 of 11 in “Add an optional argument for --color options”
  1. Add an optional argument for --color optionsMark Lodato, Feb 13, 2010
  2. Jeff KingFeb 14, 2010
  3. Jonathan NiederFeb 14, 2010
  4. Mark LodatoFeb 14, 2010
  5. Jonathan NiederFeb 15, 2010
  6. Jeff KingFeb 15, 2010
  7. Usage messages produced by parseopt (Re: [PATCH] Add an optional argument for --color options)Jonathan Nieder, Feb 15, 2010
  8. Jeff KingFeb 15, 2010
  9. Junio C HamanoFeb 15, 2010
  10. Junio C HamanoFeb 14, 2010
  11. Mark LodatoFeb 14, 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.