Skip to content
This repository was archived by the owner on Oct 5, 2026. It is now read-only.

Enforce LF line endings with .gitattributes - #10

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.
  • Converts .gitattributes itself from CRLF to LF.

Test plan

  • Claude ran 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).

"* 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>
@bonelifer
bonelifer merged commit 143308d into master Sep 28, 2026
7 checks passed
@bonelifer
bonelifer deleted the lf-line-endings branch September 28, 2026 01:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant