From 7013ae09dd6f7eae914d17c1e1f53ee317315bb7 Mon Sep 17 00:00:00 2001 From: zaurakworks Date: Sat, 15 Aug 2026 01:03:56 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=92=89=E4=BD=8F=20LF=EF=BC=8C?= =?UTF-8?q?=E6=9D=9C=E7=BB=9D=E5=B7=A5=E4=BD=9C=E6=A0=91=E4=B8=8E=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=89=AF=E6=9C=AC=E7=9A=84=E8=A1=8C=E5=B0=BE=E6=BC=82?= =?UTF-8?q?=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本仓字节是产品的一部分。没有 .gitattributes 时,本机 core.autocrlf=true 会在 每次检出把工作树换成 CRLF;而三端 Marketplace 直接指向工作树,于是运行端装到 CRLF、仓库存 LF、符合性测试与语料预算又按 LF 规范化计算——量的和发的不是同一 份东西,且不同检出时机结果不同。 2026-08-15 实测到这个形状:同一个 0.2.6,从新写入的工作树装出来是 LF,合并后 重新检出的工作树是 CRLF,plugin_release 的整树指纹据此判 modified。 Co-Authored-By: Claude Opus 5 --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e760c61 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# 本仓的字节是产品的一部分,不能随机器 git 配置变。 +# +# 没有这个文件时,本机 core.autocrlf=true 会在每次检出把工作树换成 CRLF,而 +# 三个运行端的 Marketplace 直接指向工作树——于是运行端装到的是 CRLF,仓库里 +# 存的是 LF,符合性测试与语料预算又都按 LF 规范化计算。量的和发的不是同一份 +# 东西,而且检出时机不同还会得到不同结果。 +# +# 2026-08-15 实测到这个形状:同一个 0.2.6,从新写入的工作树装出来是 LF,合并 +# 后重新检出的工作树是 CRLF,plugin_release 的整树指纹据此判为 modified。 +# +# 统一钉 LF:仓库、工作树、安装副本与所有字节统计从此是同一个口径。 +* text=auto eol=lf