Skip to content

Commit 71adea2

Browse files
iclantonclaude
andauthored
Fix CRLF line endings by adding eol=lf to .gitattributes (#212)
## Description Adds `eol=lf` to the catch-all `.gitattributes` rule, changing it from: ``` * text=auto ``` to: ``` * text=auto eol=lf ``` Without `eol=lf`, the checkout line ending falls back to the user's `core.autocrlf` setting. Users with `core.autocrlf=true` (common in dotfiles synced from Windows setups) will check out files with CRLF even on Linux/macOS/Codespaces, which can cause CRLF to appear in PRs. Adding `eol=lf` explicitly overrides `core.autocrlf` at the repo level, ensuring LF checkout for everyone regardless of their global git config. All tracked files were renormalized via `git add --renormalize .` — 5 files had latent CRLF that was cleaned up. ## How was this tested - Ran `git add --renormalize .` to verify which files were affected - Confirmed the commit diff shows CRLF → LF normalization in the affected files ## Type of change - [x] Bug fix 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1afc2bb commit 71adea2

8 files changed

Lines changed: 2241 additions & 2231 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Set default behavior to automatically normalize line endings.
2-
* text=auto
2+
* text=auto eol=lf
33

44
# Don't allow people to merge changes to these generated files, because the result
55
# may be invalid. You need to run "rush update" again.

0 commit comments

Comments
 (0)