MCPcopy
hub / github.com/pyodide/pyodide / branch_exists

Function branch_exists

tools/backport.py:484–486  ·  view source on GitHub ↗
(branch_name: str)

Source from the content-addressed store, hash-verified

482
483
484def branch_exists(branch_name: str) -> bool:
485 res = run(["git", "branch", "--list", branch_name], capture_output=True)
486 return bool(res.stdout.strip())
487
488
489def update_old_branch(branch_name):

Callers 2

force_branch_updateFunction · 0.85
diff_old_new_branchFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…