Skip to content

Enforce LF line endings with .gitattributes - #31

Merged
bonelifer merged 1 commit into
masterfrom
lf-line-endings
Sep 28, 2026
Merged

bonelifer merged 1 commit into
masterfrom
lf-line-endings

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Summary

  • Replaces * text=false in .gitattributes, which had switched line-ending normalization off, with * text=auto eol=lf.
  • Adds binary rules for image types (png, jpg, jpeg, gif, webp, ico) so their bytes are never converted.
  • Existing export-ignore and other rules are kept as they were.

Test plan

  • Claude ran git add --renormalize . after the change: every file was already stored with LF, so no other file changes.

Investigated and written by Claude on behalf of William Jacoby (bonelifer).

"* 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit ef08a19 into master Sep 28, 2026
7 checks passed
@bonelifer
bonelifer deleted the lf-line-endings branch September 28, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant