MCPcopy Create free account
hub / github.com/Louisym/MiniCC / discover_with_git

Method discover_with_git

mini_claude_code/prompt.py:62–67  ·  view source on GitHub ↗

发现指令文件 + git 状态。源码: prompt.rs:73-81

(cls, cwd: Path, current_date: str)

Source from the content-addressed store, hash-verified

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# ============================================================

Callers

nothing calls this directly

Calls 3

_read_git_statusFunction · 0.85
_read_git_diffFunction · 0.85
discoverMethod · 0.45

Tested by

no test coverage detected