# ============================================================================= # .gitattributes —— 行尾统一 # # 为什么要专门写这个文件: # ``scripts/run_hole_detect.sh`` 和 ``scripts/run_dual_gripper.sh`` 曾经是 CRLF 行尾, # 结果是**文件在、文档说能用、一跑就死** —— bash 在 # case "$1" in^M # 处直接报 "未预期的记号",而报错信息里那个 ``\r`` 是看不出来的。 # 更坑的是 ``bash -n`` 对其中一个还报 OK,只有真的执行才暴露。 # 这类"存在但不工作"的死文件,和本仓库最忌讳的静默失效是同一类问题。 # # 规矩: # 1. 本仓库自己的文件(scripts/、 src/arm_*/、 docs/、 config/、 handeye/、 devices/、 # models/)一律 LF,工作区也是 LF。 # 2. 厂商上游代码(src/flexiv_*/)与 thirdparty/ 一律不动 —— 见 # docs/FRAMEWORK_RULES.md 的 R4.4:上游文件不许改,改了会在下次拉取时被覆盖。 # ============================================================================= # 默认:文本文件在仓库里和工作区里都存成 LF * text=auto eol=lf # 厂商上游 / 第三方:内容与行尾一律保持原样(不要"顺手统一") /src/flexiv_*/** -text /thirdparty/** -text /vendor/** -text # 二进制资产:明确不当文本处理,避免被行尾转换损坏 *.onnx binary *.engine binary *.plan binary *.trt binary *.pt binary *.pth binary *.png binary *.jpg binary *.stl binary *.dae binary