-
Notifications
You must be signed in to change notification settings - Fork 453
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
Check out dumps with LF line endings, matches Dumper #1953
base: release
Are you sure you want to change the base?
Check out dumps with LF line endings, matches Dumper #1953
Conversation
Can you provide a bit more detail on why you need to have |
I think my stance is that if you decide to munge the line endings of a project, you should take responsibility for handling the cases where that doesn't work - so this config should live alongside your |
This is removing an obstacle for anyone contributing from Windows. Media3 generates LF line endings in a specific place, so it should make best effort to keep those on the consuming side without making assumptions about contributors' global git config. Mind you you're fighting against the world default. I've contributed more aggressive fixes before, this is fine. |
The content of these dump files are sometimes generated on the dev machine (for robolectric tests) and sometimes on an Android device (for instrumentation tests). So even if we generated the content with 'host specific' line endings, it would still generate only LF on the instrumentation tests - hence assuming LF everywhere. This project uses LF everywhere. The (reasonable imo) assumption is that contributors stick to that consistently. If they decide to do that by converting to CRLF on their side only (with |
Nobody wants that. Produce LF, consume LF. Best effort to keep LF in transit.
Would you like to set It doesn't play a role anywhere else. apart from CMD interpreting *.bat which requires CRLF.
It's the world default on Windows, that's a fact, not a conscious choice for the majority, that's my assumption. It's a free win in terms of usability, benefits contributors, doesn't harm maintainers. That's it. Happy Holidays. |
Fix for tests using dumps on Windows with Git set to use
core.autocrlf=true
. Tests are expecting LF, but the files after checkout are with CRLF.This fix sets that the dumps will be checked out with LF.