统一 LF 行尾并撤回脚本噪声条目
新增 .gitattributes(* text=auto eol=lf):镜像仓库不参与本地构建, autocrlf 把检出文件转 CRLF 会让同步脚本 cmp 判成逐文件变更,产生空提交。 上一提交仅含脚本自动追加的计数条目,无代码变化,一并撤回。
This commit is contained in:
12
.gitattributes
vendored
Normal file
12
.gitattributes
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# 统一行尾:源码本身为 LF,本仓库只作镜像与阅读,不参与 Windows 本地构建。
|
||||
# 不加这条时,git 的 autocrlf=true 会把检出文件转成 CRLF,
|
||||
# 同步脚本用 cmp 比对就会把每个文件都判成“有变化”,反复产生空提交。
|
||||
* text=auto eol=lf
|
||||
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.webp binary
|
||||
*.jks binary
|
||||
*.keystore binary
|
||||
Reference in New Issue
Block a user