This repository was archived by the owner on Oct 5, 2026. It is now read-only.
Enforce LF line endings with .gitattributes - #10
Merged
Merged
Conversation
"* text=auto eol=lf" so text files are stored with LF, plus binary rules for image types so their bytes are never converted. Existing export-ignore rules are kept. Replaces "* text=false", which had switched normalization off, and converts .gitattributes itself from CRLF to LF. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
* text=falsein.gitattributes, which had switched line-ending normalization off, with* text=auto eol=lf.binaryrules for image types (png, jpg, jpeg, gif, webp, ico) so their bytes are never converted.export-ignoreand other rules are kept as they were..gitattributesitself from CRLF to LF.Test plan
git add --renormalize .after the change: apart from the file(s) converted above, every file was already stored with LF, so nothing else changes.Investigated and written by Claude on behalf of William Jacoby (bonelifer).