On Fri, 7 May 2010, Avery Pennarun wrote:
No! The whole point is that each user *does* still want to be able to
decide how to convert the files tagged by the crlf gitattribute (or a
new attribute, I don't care).
Avery, you really don't _get_ it, do you?
If you want to set how the autocrlf conversion would be done, JUST DO IT.
The .gitconfig file would be overridden by your personal settings.
So what you'd have is
.gitconfig: core.autocrlf=true # to enable .gitattributes
but then any .git/config setting (to "input", say) would still override
that repository setting.
End result: exactly what you're talking about. With _simpler_ syntax than
the one Eyvind had.
Now, the thing is, we can go for even simpler syntax still, by just making
that ".gitconfig: core.autocrlf=true" entirely unnecessary.
Linus