Files
cmshoppe/.gitattributes
chengmaandClaude Opus 4.8 cd0ae5cb47 chore: add .gitattributes to enforce LF line endings
统一文本文件行尾为 LF,避免 Windows 编辑器把行尾翻成 CRLF 造成满屏噪声 diff。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 08:35:52 +08:00

17 lines
437 B
Plaintext

# 强制所有文本文件在仓库和检出时统一用 LF,避免 Windows 编辑器/工具把行尾
# 存成 CRLF,导致每次 diff 满屏“全文件改动”淹没真实改动。
* text=auto eol=lf
# 二进制文件不做行尾转换(防御性:即使被误提交也不损坏)。
*.xlsx binary
*.xls binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.lnk binary
*.db binary