Skip to content

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

Merged
sunfishcode merged 2 commits into
masterfrom
eol-lf
Mar 21, 2020
Merged

Add a .gitattributes file to specify eol=LF#1370
sunfishcode merged 2 commits into
masterfrom
eol-lf

Conversation

@sunfishcode

Copy link
Copy Markdown
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