Commit b16acbd
chore: pin line endings to LF via .gitattributes
The repo already stores every text file as LF in the index, but Windows
clones with global core.autocrlf=true rewrite the working tree to CRLF
on checkout. Subsequent edits made through tooling that writes LF (most
editors and AI agents do) trigger 'LF will be replaced by CRLF the next
time Git touches it' warnings on every commit.
Pinning eol=lf in .gitattributes overrides the contributor's global
autocrlf setting for this repo and silences the warning. PowerShell on
Windows handles LF fine, and the devcontainer already runs Linux.
NOTE: GitHub template repos are one-time copies at creation, so this
fix does NOT propagate to repositories already created from this
template. Existing downstream repos must apply the same .gitattributes
change separately.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent da1b765 commit b16acbd
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
0 commit comments