Repository navigation
fix(gitattributes): every tracked text file is LF on every checkout (CH-6) - #311
Merged
Merged
Conversation
…CH-6) 72 tracked text files matched no eol rule and came out CRLF under core.autocrlf=true. Add a `* text=auto eol=lf` catch-all, name the known binaries, and pin both with tests/test_gitattributes.py. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Jothi Mani Rajendran <250249270+jothimani-rajendran@users.noreply.github.com>
jothimani-rajendran
marked this pull request as ready for review
October 19, 2026 21:12
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
.gitattributesgains* text=auto eol=lfabove the extension rules, plus explicitbinarylines for png, gif, mp4, ico, jpg, jpeg, woff, woff2, pdf and.coverage(tracked today; CH-7 removes it, then the line is dead and can go). Newtests/test_gitattributes.py.Why
Tracked text files matching no rule (LICENSE, pyproject.toml, docs/assets/promo/, acceptance/, ...) check out CRLF on Windows with
core.autocrlf=true, so any tool hashing a checkout (catalog framework-pin verify) sees a diff from the pinned commit. The index holds no CRLF blob, so no blob changes.Measured
git add --renormalize . && git status --porcelain: onlyM .gitattributes(no blob changes).git ls-files --eol: 1504i/lfentries, all 1504 witheol=lf; 38i/-text.tests/test_gitattributes.py: 3 passed locally. Full suite and the windows-paths job: unmeasured, CI decides.Test
Every
i/lffile haseol: lf; everyi/-textfile hastextunset/unspecified; noi/crlfori/mixedin the index.