Today, I had to realize (again) that line endings were inconsistent ( thanks Cervator for the hint ). This is basically impossible using git or msysgit, but the git version that comes with eclipse (it's egit which is based on jgit) ignores a few configs (unable to resolve system config which is stored in git installation folder) and the gitattributes file. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=342372
We could ensure comitting only LF to the repos, if the working dir contained only LF files. And that, in turn, could be verified using CheckStyle (at least for the last line of the file).
I just enabled it for my workspace and it works as expected. I also changed eclipse config, so new files have automatically LF endings.
Would this change have a negative impact on anyone's workflow or code environment?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=342372
We could ensure comitting only LF to the repos, if the working dir contained only LF files. And that, in turn, could be verified using CheckStyle (at least for the last line of the file).
Code:
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
</module>
Would this change have a negative impact on anyone's workflow or code environment?