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

Re: [RFC PATCH] userdiff: ship built-in driver config file

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 19, 2019, 14:50 UTC
Message-ID
<xmqqfto5r5nr.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190619034929.GA515@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I think it _could_ actually just be part of the system /etc/gitconfig,
> though it is kind of big, and Git has a tendency to parse the config
> more than necessary. I wonder if would add a noticeable slowdown.

Yeah, that was what I was wondering too when somebody made a casual mention of the "why do we want to pile these settings hardcoded in the code for each and every language?", which I think led to this patch. I was actually imagining that this would be totally outside the normal config mechanism (there is no strong reason to even share the syntax, but there is no need to come up with a different syntax, either), treated like other fixed data files (like *.mo files), and is read lazily only when diff driver needs to be instantiated.

I also agree with you that changing how multiply-defined variables are handled with the patch is a no-go, if we are going to share the parser.

Thanks for a patch and a review.
Previous: Johannes SixtNext: Jeff King
Message 9 of 12 in “userdiff: ship built-in driver config file”
  1. userdiff: ship built-in driver config fileBoxuan Li, Jun 17, 2019
  2. Johannes SixtJun 18, 2019
  3. Johannes SixtJun 18, 2019
  4. Jeff KingJun 19, 2019
  5. Johannes SixtJun 19, 2019
  6. Junio C HamanoJun 19, 2019
  7. Jeff KingJun 19, 2019
  8. Johannes SixtJun 20, 2019
  9. Junio C HamanoJun 19, 2019
  10. Jeff KingJun 19, 2019
  11. LI, BO XUANJun 19, 2019
  12. Jeff KingJun 19, 2019

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.