Thread (1 message) 1 message, 1 author, 2023-03-16

Re: [PATCH 0/2] diff: support bare repositories when reading gitattributes for diff algorithm

From: Junio C Hamano <hidden>
Date: 2023-03-16 16:44:42

Jeff King [off-list ref] writes:
If you have a static list of attributes, that is OK (though you are
presumably better off with /etc/gitattributes or similar that covers all
repos).
...
but still tell users that "json" is a well-known name, and if they want
to get the same treatment for an arbitrary file "foo" that they would
get for "foo.json", they have to add attributes mapping it, like:

  foo diff=json

inside their repo.
Yes, you described the reason very well why we didn't add "global"
or "system-wide" attribute files.

Thanks for commenting on my somewhat tongue-in-cheek "devil's
advocate" remark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help