Windows/WSL 混用导致 43 个文件出现纯行尾的全量差异(5005 增 / 5005 删, --ignore-all-space 后为 0),真实改动被淹没;同样的 CRLF 也让 gitea.env 在 bash 中被读成带 \r 的值,导致 token 认证失败。 只新增 .gitattributes 并对已跟踪文件执行 --renormalize,文件内容零变化。 按 AGENTS.md 第 2 节,纯格式化改动免工单。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
13 lines
328 B
Plaintext
13 lines
328 B
Plaintext
# 仓库内文本统一以 LF 存储,避免 Windows/WSL 混用产生全量行尾差异。
|
|
# 行尾差异会淹没真实改动,也会让 gitea.env 之类的配置在 bash 中带上 \r。
|
|
* text=auto eol=lf
|
|
|
|
*.py text eol=lf
|
|
*.md text eol=lf
|
|
*.json text eol=lf
|
|
*.ps1 text eol=crlf
|
|
|
|
*.png binary
|
|
*.jpg binary
|
|
*.zip binary
|