MCPcopy Create free account
hub / github.com/git/git / gitBranchExists

Function gitBranchExists

git-p4.py:1044–1047  ·  view source on GitHub ↗
(branch)

Source from the content-addressed store, hash-verified

1042
1043
1044def gitBranchExists(branch):
1045 proc = subprocess.Popen(["git", "rev-parse", branch],
1046 stderr=subprocess.PIPE, stdout=subprocess.PIPE)
1047 return proc.wait() == 0
1048
1049
1050def gitUpdateRef(ref, newvalue):

Callers 6

originP4BranchesExistFunction · 0.85
runMethod · 0.85
runMethod · 0.85
renameBranchMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected