System wide gitattributes
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.
2009/9/16 David Förster <[email protected]>:
Quoted 8 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).
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
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/
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