feat(git): 新增提交身份与变更导出 Skill
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# 导出模式
|
||||
|
||||
```text
|
||||
python scripts/export.py --repo <repo> --target <dir> --mode range --base <base> --head <head> --snapshot <ref>
|
||||
python scripts/export.py --repo <repo> --target <dir> --mode time --since <time> [--until <time>] --snapshot <ref>
|
||||
python scripts/export.py --repo <repo> --target <dir> --mode worktree --snapshot worktree [--include-untracked]
|
||||
```
|
||||
|
||||
预演确认后增加 `--apply`。允许规范明确要求的环境配置时,还需同时增加:
|
||||
|
||||
```text
|
||||
--allow-protected --policy-evidence <AGENTS.md 或 .craftkit 内规范文档>
|
||||
```
|
||||
|
||||
| 模式 | 文件选择依据 | 推荐快照 |
|
||||
| --- | --- | --- |
|
||||
| `range` | `base` 与 `head` 的差异 | `head` 或明确提交 |
|
||||
| `time` | 时间范围内提交曾改动的路径 | `HEAD` 或明确提交 |
|
||||
| `worktree` | 当前相对 `HEAD` 的状态 | `worktree` |
|
||||
|
||||
快照中不存在的路径记为 `deleted`,不会创建空文件。重命名按快照中的新路径导出。
|
||||
Reference in New Issue
Block a user