-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Convert CRLF to LF #1806
Convert CRLF to LF #1806
Conversation
🚲 PR staged at http://35.226.210.39 |
1 similar comment
🚲 PR staged at http://35.226.210.39 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for checking this!
Prior to this change, local files on Window were still using CRLF.
🚲 PR staged at http://35.226.210.39 |
🚲 PR staged at http://35.226.210.39 |
Thank you, @bourgeoisor, for the quick review. |
* Convert CRLF to LF * Enforce LF in .gitattributes Prior to this change, local files on Window were still using CRLF.
* Convert CRLF to LF * Enforce LF in .gitattributes Prior to this change, local files on Window were still using CRLF.
Background
LF
(invisible character) is used by Mac/Linux to denote the end of a line in a file.CRLF
(invisible characters) is used by Windows to denote the end of a line in a file..gitattributes
file from pull-request 1688 does:LF
in remote — not necessarily locallyCRLF
toLF
CRLF
locally on Windows andLF
locally on Mac and Linuxgit ls-files --eol
to check which text files (ignoring png/jpeg/jar/tgz/etc.) were still usingCRLF
. I found that the following files were still usingCRLF
:src/cartservice/cartservice.sln
src/adservice/gradlew.bat
src\adservice\gradlew.bat
(and 2 other files) toLF
(fromCRLF
).Change Summary
git add --renormalize .
to convert the following files toLF
(fromCRLF
):src/cartservice/cartservice.sln
src/adservice/gradlew.bat
.gitattributes
file such that even local files on Windows useLF
— notCRLF
.Testing Procedure
adservice
Dockerfiledocker build
theadservice
on Windows