合并(行尾纪律钉死批): 全仓文本LF钉死(.gitattributes扩面)——修CRLF环境红: core.autocrlf=true把工作区检出成CRLF,行尾进入settlement_wiring_snapshot_test内嵌多行golden基线,逐位比对在本机必红(Mac CI绿run88在案); 检出层钉LF治本,字节级证据面(逐位对拍/MC对拍/金图)跨机复现; 本批凭据: 冒烟15项0失败PASS+单元82套件4分片全绿(1分58秒)+窄测绿,worktree分支尖c17a5430
ci / gates (push) Successful in 34s
ci / gates (push) Successful in 34s
This commit is contained in:
commit
336e66163a
1 file changed
+17
@@ -1,2 +1,19 @@
|
|||||||
# git 钩子文件必须保持 LF——autocrlf=true 检出会转 CRLF,bash 执行带 \r 的脚本即崩。
|
# git 钩子文件必须保持 LF——autocrlf=true 检出会转 CRLF,bash 执行带 \r 的脚本即崩。
|
||||||
tools/hooks/* text eol=lf
|
tools/hooks/* text eol=lf
|
||||||
|
# 全仓文本一律 LF 入库与检出——Windows core.autocrlf=true 会把工作区检出成 CRLF,
|
||||||
|
# 行尾一旦进入逐字符比对的字符串基线数据面(如测试内嵌的多行 golden 常量),
|
||||||
|
# 运行时基线(\n)与源码基线(\r\n)逐位比对必红。本规则让一切平台检出落 LF。
|
||||||
|
* text=auto eol=lf
|
||||||
|
# 二进制面显式豁免(防 auto 误判转码损坏素材与基线图)
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.webp binary
|
||||||
|
*.gif binary
|
||||||
|
*.ico binary
|
||||||
|
*.ogg binary
|
||||||
|
*.wav binary
|
||||||
|
*.mp3 binary
|
||||||
|
*.ttf binary
|
||||||
|
*.otf binary
|
||||||
|
*.zip binary
|
||||||
Reference in new issue
Block a user