Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/pygit2
/ __contains__
Method
__contains__
pygit2/branches.py:108–109 ·
view source on GitHub ↗
(self, name: str)
Source
from the content-addressed store, hash-verified
106
return
Branches(self._repository, self._flag, commit)
107
108
def
__contains__(self, name: str) -> bool:
109
return
self.get(name) is not None
Callers
nothing calls this directly
Calls
1
get
Method · 0.95
Tested by
no test coverage detected