发现指令文件 + git 状态。源码: prompt.rs:73-81
(cls, cwd: Path, current_date: str)
| 60 | |
| 61 | @classmethod |
| 62 | def discover_with_git(cls, cwd: Path, current_date: str) -> "ProjectContext": |
| 63 | """发现指令文件 + git 状态。源码: prompt.rs:73-81""" |
| 64 | ctx = cls.discover(cwd, current_date) |
| 65 | ctx.git_status = _read_git_status(cwd) |
| 66 | ctx.git_diff = _read_git_diff(cwd) |
| 67 | return ctx |
| 68 | |
| 69 | |
| 70 | # ============================================================ |
nothing calls this directly
no test coverage detected