Skip to content

Enforce LF line endings with .gitattributes - #5

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

bonelifer merged 1 commit into
mainfrom
lf-line-endings

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Summary

  • Adds * text=auto eol=lf to .gitattributes (it only had export-ignore rules), so text files are always stored with LF endings.
  • 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 1bf9e47 into main Sep 28, 2026
7 checks passed
@bonelifer
bonelifer deleted the lf-line-endings branch September 28, 2026 01:44
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