I would like to use eol=LF
in my .gitattributes file, but I would like it to apply only to the files Git automatically determines to be text files.
The best I could find is to define specific file extensions / globs as text or binary. This is not ideal as the list could be huge. I've tried * text=auto eol=LF
, but the eol=LF
part appears to override the auto
part.
Can I force LF line endings without requiring specific git config
settings, and without losing the automatic text/binary inference?