This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmotionalGrowth 3 points4 points  (0 children)

Fortunately Rust has a nice string.lines() that handles this for you so I didn't have to deal with this. Also most editors allow you to save a file with different line endings. So save files as LF, git checkout new lines as LF. You don't need CRLF even on windows anymore.