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

Method discover_with_git

tutorials/06_system_prompt_builder.py:262–267  ·  view source on GitHub ↗

自动发现项目上下文(包含 git 信息)

(cls, cwd: str, current_date: str)

Source from the content-addressed store, hash-verified

260
261 @classmethod
262 def discover_with_git(cls, cwd: str, current_date: str) -> "ProjectContext":
263 """自动发现项目上下文(包含 git 信息)"""
264 ctx = cls.discover(cwd, current_date)
265 ctx.git_status = read_git_status(cwd)
266 ctx.git_diff = read_git_diff(cwd)
267 return ctx
268
269
270# ============================================================

Callers 1

mainFunction · 0.45

Calls 3

read_git_statusFunction · 0.70
read_git_diffFunction · 0.70
discoverMethod · 0.45

Tested by

no test coverage detected