chore: add .gitattributes to enforce LF line endings
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ef288b0021
commit
aee7e25d1f
@@ -0,0 +1,12 @@
|
||||
# 强制所有文本文件在仓库和检出时统一用 LF,避免 Windows 编辑器/工具把行尾
|
||||
# 存成 CRLF,导致每次 diff 满屏“全文件改动”淹没真实改动。
|
||||
* text=auto eol=lf
|
||||
|
||||
# 二进制文件不做行尾转换(防御性)。
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.ico binary
|
||||
*.pdf binary
|
||||
*.zip binary
|
||||
Reference in New Issue
Block a user