Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
997
def
branchExists(ref):
998
rev = read_pipe([
"git"
,
"rev-parse"
,
"-q"
,
"--verify"
, ref],
999
ignore_error=True)
1000
return
len(rev) > 0
1001
1002
1003
def
extractLogMessageFromGitCommit(commit):
Callers
2
run
Method · 0.85
run
Method · 0.85
Calls
1
read_pipe
Function · 0.85
Tested by
no test coverage detected