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

Re: [BUG] git-diff-* --color oddness

From
Jeff King <peff@peff.net>
Date
Jan 4, 2008, 09:25 UTC
Message-ID
<20080104092505.GA2320@coredump.intra.peff.net>
In-Reply-To
<20080104085934.GA3706@coredump.intra.peff.net>
On Fri, Jan 04, 2008 at 03:59:34AM -0500, Jeff King wrote:
> OK. In that case, we need a way for the plumbing to tell the diff
> machinery "don't ever try loading the ui config."
> >  * funcname-pattern can go either way; that affects what appears
> >    at the end of @@ context @@ lines, and would not have risk to
> >    corrupt the patch for plumbing.

I just sent a patch to put the funcname pattern in the "basic" config, and to get rid of the lazy config loading. So that fixes one call by the plumbing to read_config_if_needed.

And it looks like the second call is already OK. We don't try parsing the config to get the external diff command unless ALLOW_EXTERNAL is set, which the plumbing already disallows (though I am still confused why it would need to be loaded lazily in the first place -- I wonder if read_config_if_needed is needed at all).

-Peff
Previous: Jeff KingNext: Junio C Hamano
Message 10 of 12 in “[BUG] git-diff-* --color oddness”
  1. Jeff KingJan 4, 2008
  2. Junio C HamanoJan 4, 2008
  3. Jeff KingJan 4, 2008
  4. Junio C HamanoJan 4, 2008
  5. Jeff KingJan 4, 2008
  6. Junio C HamanoJan 4, 2008
  7. Jeff KingJan 4, 2008
  8. Junio C HamanoJan 4, 2008
  9. Jeff KingJan 4, 2008
  10. Jeff KingJan 4, 2008
  11. Junio C HamanoJan 4, 2008
  12. Jeff KingJan 4, 2008

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.