MCPcopy
hub / github.com/anthropics/financial-services / git_ok

Function git_ok

scripts/version_bump.py:48–53  ·  view source on GitHub ↗

Run a git command, returning stdout or None if it fails.

(*args: str)

Source from the content-addressed store, hash-verified

46
47
48def git_ok(*args: str) -> str | None:
49 """Run a git command, returning stdout or None if it fails."""
50 try:
51 return git(*args)
52 except subprocess.CalledProcessError:
53 return None
54
55
56def resolve_base(explicit: str | None) -> str | None:

Callers 3

resolve_baseFunction · 0.85
base_versionFunction · 0.85
changed_pluginsFunction · 0.85

Calls 1

gitFunction · 0.85

Tested by

no test coverage detected