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

Function branchExists

git-p4.py:997–1000  ·  view source on GitHub ↗
(ref)

Source from the content-addressed store, hash-verified

995
996
997def branchExists(ref):
998 rev = read_pipe(["git", "rev-parse", "-q", "--verify", ref],
999 ignore_error=True)
1000 return len(rev) > 0
1001
1002
1003def extractLogMessageFromGitCommit(commit):

Callers 2

runMethod · 0.85
runMethod · 0.85

Calls 1

read_pipeFunction · 0.85

Tested by

no test coverage detected