Skip to content

chore: enforce LF line endings via .gitattributes#246

Merged
devantler merged 1 commit into
mainfrom
claude/gitattributes-eol
Jun 25, 2026
Merged

chore: enforce LF line endings via .gitattributes#246
devantler merged 1 commit into
mainfrom
claude/gitattributes-eol

Conversation

@devantler

Copy link
Copy Markdown
Contributor

🤖 Generated by the Daily AI Assistant

What & why

Adds a .gitattributes with * text=auto eol=lf to enforce LF line endings across the whole scaffold.

The repo already declares end_of_line = lf in .editorconfig, but that is only an editor hint: a contributor whose Git has core.autocrlf=true could still commit CRLF, and every instance scaffolded from this template would inherit the inconsistency. .gitattributes is the authoritative, platform-independent control Git itself honours on add/checkout.

Churn-free & behaviour-preserving

Every tracked file is already LF (git ls-files --eol → 0 w/crlf), so git add --renormalize . stages only the new .gitattributes — no source/manifest file is touched. text=auto keeps detection correct if a binary asset is ever added later.

Holistic suite parity

This mirrors the .gitattributes just merged into platform-template#44, closing the same gap across the template suite. go-template gets the identical one-liner in a sibling PR (go-template#128); gitops-tenant-template is held until its KRO redesign settles (it does not yet declare the LF EditorConfig hint).

@devantler devantler marked this pull request as ready for review June 25, 2026 10:53
@devantler devantler requested a review from a team as a code owner June 25, 2026 10:53
@devantler devantler merged commit c4680ec into main Jun 25, 2026
10 checks passed
@devantler devantler deleted the claude/gitattributes-eol branch June 25, 2026 10:53
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