Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
35 lines (29 loc) · 1.99 KB
/
Copy path.gitattributes
File metadata and controls
35 lines (29 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 保持脚本文件 LF 换行,避免 Windows CRLF 导致 shebang 解析失败
*.mjs text eol=lf
*.sh text eol=lf
# schema baseline 与运行时 dump 逐字节比对;Windows autocrlf 检出成 CRLF 会被
# db:schema:check 误报为 schema 差异并阻断 pre-push,强制 LF。
*.baseline.sql text eol=lf
# Python 锁文件由 recipe 按 SHA-256 固定;Windows autocrlf 检出成 CRLF 后,
# 资源转换会报 lock digest differs,强制 LF。
scripts/preinstalled-tools/python/locks/*.txt text eol=lf
# E2E PDF fixture 含规范 xref 尾空格,必须按二进制处理,避免 diff --check 误报。
packages/desktop/test/e2e/fixtures/fs/**/*.pdf binary
# 文档查看器测试 PDF 同理:按字节解析 xref,换行转换会破坏偏移。
apps/zcode-cli/packages/office-runtime/fixtures/*.pdf binary
# 上游许可原文与生成的声明按字节保存,不能自动转换换行或裁剪空白。
# 原文中的 License / ======= 是 Markdown 标题,不是合并冲突。
THIRD-PARTY-NOTICES.md -text -whitespace conflict-marker-size=32 linguist-generated=true
third-party/upstream/** -text -whitespace
third-party/native-search/licenses/** -text -whitespace
third-party/runtime/*.txt -text -whitespace
docs/knip/docs/LICENSE -text -whitespace
docs/knip/docs/licenses/** -text -whitespace
third-party/inventory.json linguist-generated=true
# Gen UI vendor 快照带 sha256 清单,构建时逐字节校验;autocrlf 改写换行会误报漂移,按字节保真。
apps/zcode-cli/packages/visualize-plugin/skills/visualize/assets/vendor/** -text
# design 内置插件:第三方设计资源保持上游原字节(许可登记按原文哈希校验);
# SessionStart hook 是 sh/cmd 双写法脚本,CRLF 会让 sh 解析失败,固定 LF。
apps/zcode-cli/packages/design-plugin/skills/design/design-resources/** -text -whitespace linguist-vendored=true
apps/zcode-cli/packages/design-plugin/hooks/design-rules text eol=lf
apps/zcode-cli/packages/design-plugin/hooks/run-hook.cmd text eol=lf