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

Method __init__

pygit2/references.py:42–43  ·  view source on GitHub ↗
(self, repository: BaseRepository)

Source from the content-addressed store, hash-verified

40
41class References:
42 def __init__(self, repository: BaseRepository) -> None:
43 self._repository = repository
44
45 def __getitem__(self, name: str) -> 'Reference':
46 return self._repository.lookup_reference(name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected