# 仓库内文本 blob 全部是 LF(2026-09-28 取证:git grep -P '\r' 在 HEAD 上 0 命中), # 但开发机 core.autocrlf=true 会在检出时改写为 CRLF。快照类测试拿 Files.readString 读 # golden 后与代码里 append('\n') 生成的字符串逐字节比对,检出形态一变就整片红。 # 这里把"断言会读到的文本"钉成 LF,checkout 时不再被 autocrlf 转换。 # 只列扩展名、不写 `* text`:避免 git 去归一化 jar/png/zip 等二进制产物。 *.txt text eol=lf *.md text eol=lf *.sql text eol=lf *.yml text eol=lf *.yaml text eol=lf *.json text eol=lf *.sh text eol=lf