we have some files originally created under Windows with EOL (CRLF) and others with Linux (LF), sometimes the IDE (or a bad configured Git after a fresh reinstall) changed those EOL overriding and making us lose the entire history of the files (blame
is completely useless, just with -w works).
I tried tracking the last time the file was ok, before the switch of EoL and replacing it but didn't work, retrieving that file from another branch. Since the file always had minimal changes I didn't notice this problem after several commits and merges, I have a 6 months old branch with the original EOL.
How can I fix these files?