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

Re: [PATCH] fix color.pager = false with "git diff"

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 21, 2010, 19:02 UTC
Message-ID
<20101021190258.GA11759@burratino>
In-Reply-To
<20101021150244.GA18426@sigill.intra.peff.net>

[reordered for convenience] Jeff King wrote:

Show 15 quoted lines
> In favor of this patch:
>
>   1. It fixes a real bug.
>
>   2. Perfect is the enemy of the good, and I don't care enough about
>      this case to refactor the color code.
>
> Against:
>
>   1. It does nothing to fix other times when this ordering problem may
>      arise (I don't think there are others, but I didn't check very
>      thoroughly. And of course new ones may appear).
>
>   2. The bug was reported over 2 years ago, and hasn't come up since,
>      despite remaining unfixed.  Maybe nobody actually cares.

I'd say, go for it. At least one person (Benjamin Kudria, cc-ed) cared at some point. And including the code means that maybe some future hero refactoring "git diff" will notice and implement the proper solution.

Though to that end, wouldn't it make sense to include
>                                                         A more elegant
> solution would be totally rewriting the color code to check for the
> pager at first output.
in the commit message?
Previous: Jeff KingNext: Junio C Hamano
Message 2 of 4 in “fix color.pager = false with "git diff"”
  1. fix color.pager = false with "git diff"Jeff King, Oct 21, 2010
  2. Jonathan NiederOct 21, 2010
  3. Junio C HamanoOct 21, 2010
  4. Jeff KingOct 22, 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.