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

Re: Fix git-rev-parse breakage

From
Junio C Hamano <junkio@cox.net>
Date
Aug 24, 2005, 03:22 UTC
Message-ID
<7vy86skoib.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0508231908170.3317@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 6 quoted lines
> This makes "--revs-only" imply "--no-flags".
>
> [ Side note: we might want to get rid of these confusing two-way flags, 
>   where some flags say "only print xxx", and others say "don't print yyy". 
>   We'd be better off with just three flags that say "print zzz", where zzz
>   is one of "flags, revs, norevs" ]
I suspect that would not fly too well.

Being able to say "give me all flags meant for rev-list", "give me all what are meant for rev-list", and "give me all non-flags that are meant for rev-list" are very handy, so I'd rather want to see --revs-only to mean "meant for rev-list", --no-revs to mean "not meant for rev-list", --flags to mean "only ones that start with a '-'", and --no-flags to mean "only ones that do not start with a '-'". And that would give me (rev/no-rev/lack thereof) x (flag/no-flag/lack thereof) = 9 combinations.

Previous: Linus TorvaldsNext: Junio C Hamano
Message 2 of 6 in “Fix git-rev-parse breakage”
  1. Linus TorvaldsAug 24, 2005
  2. Junio C HamanoAug 24, 2005
  3. Junio C HamanoAug 24, 2005
  4. Linus TorvaldsAug 24, 2005
  5. Audit rev-parse users again.Junio C Hamano, Aug 24, 2005
  6. Rationalize output selection in rev-parse.Junio C Hamano, Aug 24, 2005

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.