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

Re: [PATCH] git-rev-list: fix --header

From
Junio C Hamano <junkio@cox.net>
Date
Apr 17, 2006, 21:42 UTC
Message-ID
<7vhd4rlw0m.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0604172222390.19593@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
>> Wouldn't this be simpler and do the same thing, I wonder?  The
>> point being that "--pretty --header" and "--header --pretty"
>> traditionally did not make --header to override --pretty.
>
> I thought, why not fix that bug, too? After all, it is counterintuitive 
> what "--header --pretty" does, and it was easy to fix.

I checked with 0.99.9m and both "--pretty --header" and "--header --pretty" gives preference to --pretty. I think your patch changes it to favor whichever comes later.

I thought it could be considered a bug to accept --header and --pretty at the same time without complaining, but if you want to forbid it, you could error out. However, that might break existing Porcelains, and that's why I suggested to keep the traditional "--pretty wins over --header" behaviour.

If gitk were the only Porcelain we care about that uses --header, it would make more sense to change the rule to "--header trumps --pretty" and "gitk --pretty" would magically start working.

Still undecided. As you say it is an easy change, so I'd rather leave the behaviour as before for now.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 5 in “git-rev-list: fix --header”
  1. git-rev-list: fix --headerJohannes Schindelin, Apr 17, 2006
  2. Junio C HamanoApr 17, 2006
  3. Johannes SchindelinApr 17, 2006
  4. Junio C HamanoApr 17, 2006
  5. Johannes SchindelinApr 18, 2006

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.