Skip to content

Commit 6a19b6a

Browse files
committed
chore(gitignore): 忽略 chorography 生成物,只保留 plan.yaml
T0/T1 每次运行都会重写 .chorography/ 下的 index.md、modules/*.md、 evidence/*.json 与 state.json,这些都是可从仓库重新生成的派生物。 不进版本库,clone 下来也不会先看到几十个还没跑过的生成页。 plan.yaml 是唯一的人工正面控制表(spec §4 目录契约里标为用户所有), 必须能提交,所以忽略的是目录内容 .chorography/* 而不是整个目录—— 整条忽略目录时 git 不会进目录看白名单,!.chorography/plan.yaml 永远不生效。 验证方式(临时仓与本次分支各跑一遍):state.json / modules/src.md / index.md 命中 .gitignore:47 被忽略;plan.yaml 命中 .gitignore:48 白名单, git status 里只作为新文件出现,可直接 git add。
1 parent 952f307 commit 6a19b6a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ memory.db
3939

4040
# 本机个人工具(dsh 目录镜像滞后监控等,非包内容,不进版本库)
4141
tools/
42+
43+
# 仓库地志生成物(chorography,见 docs/specs/2026-11-04-chorography-design.md)
44+
# T0/T1 会重写 index.md、modules/*.md、evidence/*.json 与 state.json,都是可再生成的派生物;
45+
# 只有 plan.yaml 是人工写的正面控制表,必须进版本库。
46+
# 忽略目录内容而非整个目录,否则白名单 !.chorography/plan.yaml 不生效。
47+
.chorography/*
48+
!.chorography/plan.yaml

0 commit comments

Comments
 (0)