MCPcopy Create free account
hub / github.com/libgit2/pygit2 / __contains__

Method __contains__

pygit2/repository.py:281–282  ·  view source on GitHub ↗
(self, key: str | Oid)

Source from the content-addressed store, hash-verified

279 return value
280
281 def __contains__(self, key: str | Oid) -> bool:
282 return self.git_object_lookup_prefix(key) is not None
283
284 def __repr__(self) -> str:
285 return f'pygit2.Repository({repr(self.path)})'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected