-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
The project has mixed line endings, and that's bad #489
Comments
I agree, mixed line endings are annoying. I found that Unity creates its auto generated files with Furether, the current custom code generation (e.g. RMessages.cs) just uses Note that Git can convert between line endings, see Anyway, I don't have a strong opinion on this, would prefer |
I do not understand how autocrlf is not mega, giga evil. When I checkout, I expect to receive exactly what's in the repo, byte for byte, and the same when committing. Furthermore, autocrlf breaks any tools that compare files, calculate their hashes, and so on. |
autocrlf is a standard thing and as far as I know, all projects I contribute do also use it.. @AnsisMalins what git client are you using, that you have any issue with this at all? |
I'm using Git and GitExtensions. If autocrlf is the law then I will obey and turn it on for this repo. |
Issue type: Development discussion
Problem or question to be solved
Some files and lines with LF (example: SongLibraryOptionsSceneControl.cs), others end lines with CRLF (example: FileSystemDialogUtils.cs). Visual Studio is unable to consistently switch between different line endings one a per file basis. This causes diffs where the whole file changed. But also, mixed line endings are just plain rude.
Suggested solution/s
Pick one, reformat all files to it, and add an editorconfig rule to enforce it.
Your opinion on the topic
I would go with LF because it's more popular in the open source world, and anyway, Windows will be dead soon. :^)
The text was updated successfully, but these errors were encountered: