MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / run_git

Function run_git

scripts/generate_content_pr.py:364–372  ·  view source on GitHub ↗

Run a git command and return (returncode, stdout, stderr).

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

Source from the content-addressed store, hash-verified

362# ---------------------------------------------------------------------------
363
364def run_git(args: list[str], cwd: Path = ROOT) -> tuple[int, str, str]:
365 """Run a git command and return (returncode, stdout, stderr)."""
366 result = subprocess.run(
367 ["git"] + args,
368 cwd=cwd,
369 capture_output=True,
370 text=True,
371 )
372 return result.returncode, result.stdout.strip(), result.stderr.strip()
373
374
375def create_branch(branch_name: str) -> bool:

Callers 3

create_branchFunction · 0.85
commit_filesFunction · 0.85
push_branchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected