-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Correct new line problems #3174
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
Conversation
|
I actually have a commit for this here: 52e6b7f Mainly I did this because some on the team would prefer we whitelist instead of blacklist files. I'm generally rethinking it now. |
|
@DanielRosenwasser I think that solution turns off all normalization even under |
e9be8ea to
55b4cbe
Compare
|
@tinganho why would that be? I thought later entries in Also, I thought the idea was that we wanted autocrlf for |
I believe the
The |
|
@DanielRosenwasser can you give this a test and see what we need to do here. |
|
@tinganho and @DanielRosenwasser do we still need this? |
|
I think if we want |
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 might be mistaken, but I don't think this is a valid flag.
|
Here's still my idealized scenario:
This PR addresses a different view: that the text should just always be CRLF, which some on the team do agree with, but I personally don't. I'd prefer we didn't go down that route. |
|
My question is more about the source issue. We have got regular issues about line ending until we added "-text". i have not seen any since. is this still an issue we need to fix? if so, @DanielRosenwasser 's proposal seem to have less movig pieces, and i would just enforce this on |
|
I think @DanielRosenwasser proposal is to have LF now in src and scripts. I personally like LF more than CRLF. |
|
I'm also have not been able to set overriding rules in gittattributes. I'm not sure why. If you see my PR I set everything explicitly. |
Same, this is why I haven't been able to get this moving. What OS are you running on @tinganho? |
|
Mac OS. On Sat, Jun 20, 2015, 09:27 Daniel Rosenwasser notifications@github.com
|
|
so what are we doing with change at this point? |
|
I think it would be appropriate to close this and open up a new PR some point down the line to accomplish what I've described. |
|
closing then. thanks |
|
Changes Unknown when pulling 5d470fd on tinganho:gitattributes into ** on Microsoft:master**. |
Just figured out how to fix the new line problem we had.
We could leave tests folder ignoring normalization:
But that only works if no other overrides it so all other attributes must be more selective
In order for git to convert
LFtoCRLFit also need to have clean files withCRLF. So I updated all the files undersrc. And I got this warning outputted if I try to addLF:Otherwise, I think git tries to be smart and not normalize files to prevent an explosion from happening.
I just tried everything above and it works for me on a Mac with: