Files
2026-09-18 13:05:49 +08:00

24 lines
700 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 统一按 LF 存放与检出。
#
# 仓库里的文本一直是 LF,但 Windows 默认的 core.autocrlf=true 会把**工作区**换成 CRLF,
# 于是 `gofmt -l` 会把「行尾是 CRLF」误报成「格式不对」——18 个文件里只有 12 个是真问题,
# 真实的格式问题就淹没在噪声里。这条属性让工作区也保持 LF,检查才有意义。
* text=auto eol=lf
# 二进制:别让 git 去做行尾转换或内容探测
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.zip binary
*.gz binary
*.pdf binary
*.sqlite binary
*.rondbackup binary