On Fri, May 07, 2010 at 09:33:49AM -0700, Junio C Hamano wrote:
The crlf attribute says whether to enable autocrlf functionality for a
file, but that is not what is really wanted. auto-eol instead says how
line endings should be stored in the repository. Also, auto-eol will
only affect files auto-detected as text (or forced to be treated as
text by the crlf attribute) it seems.
Maybe it is sufficient to add a new value to "crlf" that means:
- If the file is autodetected as text:
- Convert to LF only on commit, and
- Convert to your preferred EOL style on checkout.
I don't think autocrlf is a good place to specify preferred EOL
style, it is too dangerous to set autocrlf to true by default, but it should
not be dangerous to say that your preferred EOL style is CRLF.
- Finn Arne
--
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