Skip to content

Add a .gitattributes file to specify eol=LF #1370

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

Merged
merged 2 commits into from
Mar 21, 2020
Merged

Add a .gitattributes file to specify eol=LF #1370

merged 2 commits into from
Mar 21, 2020

Conversation

sunfishcode
Copy link
Member

This configures git to normalize files to LF-style line endings, and converts several files which used CRLF-style line endings. While here, I also removed a few UTF-8 BOMs. Both of these changes reflect the majority style in the respository, and even the majority style among *.cs files.

cc @darinmorrison and #1317 (comment)

This is similar to [Rust's .gitattributes file] though simplified.
Most of our source and documentation files already used LF-style line
endings, including *.cs files, so this makes things more consistent.

[Rust's .gitattributes file]: https://github.com/rust-lang/rust/blob/master/.gitattributes
Most of our *.cs files don't have UTF-8 BOMs, so this makes things more
consistent.
@sunfishcode sunfishcode requested a review from peterhuene March 20, 2020 19:59
@sunfishcode sunfishcode mentioned this pull request Mar 20, 2020
@sunfishcode sunfishcode merged commit c202a8e into master Mar 21, 2020
@sunfishcode sunfishcode deleted the eol-lf branch March 21, 2020 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants