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

Function _read_git_output

mini_claude_code/prompt.py:212–222  ·  view source on GitHub ↗

源码: prompt.rs:265-275

(cwd: Path, args: list[str])

Source from the content-addressed store, hash-verified

210
211
212def _read_git_output(cwd: Path, args: list[str]) -> Optional[str]:
213 """源码: prompt.rs:265-275"""
214 try:
215 result = subprocess.run(
216 ["git"] + args, cwd=cwd, capture_output=True, text=True, timeout=10,
217 )
218 except (FileNotFoundError, subprocess.TimeoutExpired):
219 return None
220 if result.returncode != 0:
221 return None
222 return result.stdout
223
224
225# ============================================================

Callers 1

_read_git_diffFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected