I want git to normalize text files with LF line endings using a .gitattributes file in my repo.
I've tried * text=auto, however, that checks out files on Windows with CRLF line endings, converting them back to LF upon adding the changes to Git.
I've also tried * eol=lf, but that also sets the line ending for files that aren't text, like .jar files.
I've tried adding both the same line (* text=auto eol=lf), but that just did the same as having * eol=lf.
Is there a way to normalize line endings of only text files using .gitattributes, that doesn't checks them out as LF on Windows platforms?