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

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

From
Johannes Sixt <j6t@kdbg.org>
Date
Jun 20, 2019, 07:41 UTC
Message-ID
<1db4a03e-5bc2-673d-6d89-bf654b785129@kdbg.org>
In-Reply-To
<20190619183931.GA28145@sigill.intra.peff.net>
Am 19.06.19 um 20:39 schrieb Jeff King:
> But without that, I have to wonder what problem we are really solving.
You have a point here.
> Now it's baked into the binary. Later it will be baked into the
> distribution, but we still don't want anybody to touch it because their
> changes will be overwritten.

Having the patterns outside the binary reduces our mental barrier to accept additional patterns or slightly modified patterns for new file types, like we had recently for octave that are just a small extension to the matlab patterns.

But we are not solving a technical problem or a problem our users have, AFAICS.

> I guess it's a little easier for somebody
> to find .../share/git-core/userdiff and use it as a template than it is
> to find the definitions in the source. But it's not exactly easy.
Having a slightly easiser to discover database may count as an advantage. ;)
-- Hannes
Previous: Jeff KingNext: Junio C Hamano
Message 8 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.