Yes, but I also think that even without .gitattributes, you just want to
have a default for what "text" actually means, and it's entirely possible
that the default should be: "check out with just LF, and on check-in turn
CRLF into LF".
But exactly because _some_ programs might want to always see CRLF on input
too, it should be overridable.
Or maybe the default should be "turn into CRLF", and there should just be
an option to make it check out as LF-only.
Regardless, I think that is independent of ".gitattributes". The
_attribute_ should be "text", but what it then means in practice is a
separate flag.
And yes, we *could* have a per-file attribute ("text,crlf-checkout") which
could be used to say "I want to always check out as crlf regardless of any
other policy") and the same for lf-only, but I seriously doubt that
anybody really needs that kind of knob-tweaking. At some point it's just
fine to say "you're crazy".
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html