MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _run_git_ok

Function _run_git_ok

src/utils/git.py:37–39  ·  view source on GitHub ↗
(args: list[str], cwd: str | None = None)

Source from the content-addressed store, hash-verified

35
36
37def _run_git_ok(args: list[str], cwd: str | None = None) -> str:
38 stdout, _, rc = _run_git(args, cwd)
39 return stdout if rc == 0 else ""
40
41
42@dataclass

Callers 8

test_run_git_okMethod · 0.90
get_repo_rootFunction · 0.85
get_current_branchFunction · 0.85
get_default_branchFunction · 0.85
get_session_diffFunction · 0.85
get_diff_against_branchFunction · 0.85
get_commit_attributionFunction · 0.85
list_worktreesFunction · 0.85

Calls 1

_run_gitFunction · 0.70

Tested by 1

test_run_git_okMethod · 0.72