Skip to contentSkip to conversation

System wide gitattributes

DISCUSSION David Förster 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi there,

from the documentation I understand that things like external diff tools can be set up in a gitattributes file per repository (or subfolder).

Why is there no support for a ~/.gitattributes file? This would be very handy, for example to always get a textual diff of OpenDocument files.

Regards,
- David

ps: Please cc, I'm not on the list.

#2 lore raw
Quoted 6 lines · Rustom Mody

2009/9/16 David Förster <[email protected]>:

Quoted 5 lines

Hi there,

from the documentation I understand that things like external diff tools can be set up in a gitattributes file per repository (or subfolder).

Quoted 7 lines
Quoted 3 lines

Why is there no support for a ~/.gitattributes file? This would be very handy, for example to always get a textual diff of OpenDocument files.

They are there; see

http://www.kernel.org/pub/software/scm/git/docs/git-config.html#FILES

~/.gitconfig is there, but I don't see a ~/.gitattributes file mentionned in this page ...

Signature · 2 lines
Matthieu Moy
http://www-verimag.imag.fr/~moy/
#3 lore raw
In reply to David Förster
Quoted 7 lines · David Förster

from the documentation I understand that things like external diff tools can be set up in a gitattributes file per repository (or subfolder).

Why is there no support for a ~/.gitattributes file? This would be very handy, for example to always get a textual diff of OpenDocument files.

I think it is simply that nobody found it particularly useful until now, and so nobody implemented it. Gitattributes tend to be somewhat tied to the project files themselves. However, I can certainly see the use of something like "*.doc diff=word" in your ~/.gitattributes.

So I think it is a sound concept; it just needs somebody to volunteer to write it.

-Peff