Skip to content

Harden .gitattributes: force LF for shell scripts#1152

Merged
erikdarlingdata merged 1 commit into
devfrom
feature/gitattributes-eol
Jun 19, 2026
Merged

Harden .gitattributes: force LF for shell scripts#1152
erikdarlingdata merged 1 commit into
devfrom
feature/gitattributes-eol

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Maintenance follow-up to the EOL-hygiene item. Finding: the repo already has a .gitattributes (* text=auto eol=crlf + binary markers) and the tree is already normalized (git add --renormalize . is a no-op) — so the CRLF/LF mix is resolved.

One gap closed here: the global eol=crlf rule would check out a future *.sh as CRLF, which fails under Git Bash (this repo uses it heavily). Added *.sh text eol=lf. No tracked .sh files today, so this changes nothing now — it's a latent-footgun guard.

🤖 Generated with Claude Code

The repo's .gitattributes already normalizes text (`* text=auto eol=crlf`) and
the tree is already normalized (`git add --renormalize .` is a no-op). Gap: with
the global eol=crlf rule, a future *.sh would be checked out CRLF and fail under
Git Bash, which this repo uses heavily. Add `*.sh text eol=lf`. No tracked .sh
files today, so this changes nothing now — it's a latent-footgun guard.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit f34d96c into dev Jun 19, 2026
@erikdarlingdata erikdarlingdata deleted the feature/gitattributes-eol branch June 19, 2026 02:35
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