Repository navigation
Commit 6a3a617
committed
feat(execution): 构建检测和运行项发现跳过被 Git 忽略的目录
build.detect 和自动运行项发现共用的启发式扫描(最多 6 层)现在会按 Git
的忽略规则剪掉目录:.claude/worktrees 下的代理工作树、生成目录和本地副本
不再被当成候选根目录,构建窗口不会把每个模块列两遍。
- 规则来自工作区内途经的 .gitignore,以及根目录在工作区内的仓库的
info/exclude;gitfile 按 gitdir: 解析,链接工作树经 commondir 读主仓库
共享的 info/exclude;嵌套仓库另起一套规则;深层文件先匹配先决定,
支持 ! 重新包含。
- 不读工作区根以上的目录、core.excludesFile 和索引;读不到的忽略文件不加
规则(只会多看到目录),远程连接中断仍然让扫描失败。
- 指纹扫描和 Node 清单发现(不限深度的完整扫描)不变,仍遍历被忽略的目录。
- 契约 README、构建系统参考页、rust-core-api.md 写明检测深度和忽略规则;
协议更新记录加一行。1 parent df95582 commit 6a3a617
9 files changed
Lines changed: 390 additions & 15 deletions
File tree
- rust
- contracts
- crates
- core/src/tests
- execution
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
3213 | | - | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
3214 | 3220 | | |
3215 | 3221 | | |
3216 | 3222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
757 | 780 | | |
758 | 781 | | |
759 | 782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
750 | 754 | | |
751 | 755 | | |
752 | 756 | | |
| |||
768 | 772 | | |
769 | 773 | | |
770 | 774 | | |
771 | | - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
772 | 779 | | |
773 | 780 | | |
774 | 781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments