-
-
Notifications
You must be signed in to change notification settings - Fork 111
Line endings should be consistent #1126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@holgerfriedrich line endings and messing with git are not my forte, unfortunately. I suggest you join the discord (https://discord.gg/AfScp5x8r5) to talk with the more experienced developers or ping them here (supertick, kwatters, etc.) |
Haven't seen this until now. |
#1427 |
merged |
Currently, text files (java, etc) use a different line endings (CR/CRLF), and some files contain a mix of both.
Working on #1121, I have trouble setting up spotless. The tool always tries to reformat nearly half of the codebase :-)
For java files, there are ~800 out of 1300 files using CRLF style.
Typically the convention is to use LF in the git repo and let git automatically decide on checkout depending on the target platform.
My recommendation would be to use
text=auto
feature in.gitattributes
file to enable automatic conversion. However, this does not help for the files in the repo using CRLF format. It would require a huge commit fixing all the files, and basically rendering "git blame" useless, as this would always point to this commit. I see not other option, as rewriting the commit history is not a good way for a public repo anyway.Any ideas on this, @AutonomicPerfectionist ?
The text was updated successfully, but these errors were encountered: