-
Notifications
You must be signed in to change notification settings - Fork 502
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
Set LF for all files #214
Set LF for all files #214
Conversation
Hi @brcrista @marko-zivic-93 , could you please review this small PR? |
.gitattributes
Outdated
@@ -1 +1,2 @@ | |||
* text=auto eol=lf |
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.
* text=auto eol=lf | |
* text=auto |
Just calling out:
text=auto
will already cause all new files to be converted toLF
: https://www.git-scm.com/docs/gitattributes#Documentation/gitattributes.txt-Settostringvalueauto- Adding
eol=lf
means that existing files will also be converted toLF
as they are touched.
I don't feel strongly about it, but I usually go with text=auto
since it won't change things that are already working. What do you think?
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.
I agree, fixed, thanks!
@brcrista, could you please review? |
* Set LF for all files * Set gitattr text=auto
* Set LF for all files * Set gitattr text=auto
* Set LF for all files * Set gitattr text=auto
Description:
Set LF for line endings