2 ms·
Oh that's great. I always used the following `.gitattributes`: # Enforce `lf` for text files (even on Windows) * text=auto eol=lf I'll try your config
by demurgos 3y ago
Oh that's great. I always used the following `.gitattributes`:
# Enforce `lf` for text files (even on Windows)
* text=auto eol=lf
I'll try your config too.
My current position is that anywhere you can choose between CRLF and LF (git, editor, program output), it should always be LF regardless of the platform. Simple LF just works on Windows, and removing this variation point simplifies so much of code. For example, you can check reproducible outputs or hashing with a single reference value.