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

diff: use built-in patterns by default via git attributes

From
DHDaniel Hahler <genml+git-2014@thequod.de>
Date
Dec 9, 2014, 20:18 UTC
Message-ID
<54875916.7020107@thequod.de>
Hi,

I'm wondering why the built-in patterns (defined in userdiff.c) are not being applied by default, e.g. what you would normally do in core.attributesfile via:

    *.py diff=python

Wouldn't it make sense to provide certain defaults for attributes, where Git provides enhanced patterns?

Regards, Daniel.

-- 
http://daniel.hahler.de/
Next: Jeff King
Message 1 of 2 in “diff: use built-in patterns by default via git attributes”
  1. Daniel HahlerDec 9, 2014
  2. Jeff KingDec 9, 2014

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.