fix: force LF on *.txt so generated llms.txt stays clean on Windows

.gitattributes pins eol=lf for every other generated/parsed text type
(*.md, *.json, *.ts, setup, bin/*) but omits *.txt. gstack/llms.txt is
regenerated as LF by ./setup's gen-llms-txt on every run, while Git for
Windows sets core.autocrlf=true at the system level. The file is therefore
reported modified forever, and /gstack-upgrade's `git stash` silently
stashes it on every upgrade.

Blob and worktree are both pure LF and `git diff` is empty, so the file is
phantom-modified rather than content-modified.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Taofeek Adigun 2026-07-17 10:36:33 +01:00
parent a3259400a3
commit 3004811110
1 changed files with 1 additions and 0 deletions

1
.gitattributes vendored
View File

@ -8,6 +8,7 @@
*.yaml text eol=lf
*.json text eol=lf
*.toml text eol=lf
*.txt text eol=lf
# Bash scripts must always use LF — CRLF in bash scripts produces bizarre
# "Bad interpreter" / "command not found" errors on Linux runners.