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

Method read

pygit2/repository.py:135–140  ·  view source on GitHub ↗

read(oid) -> type, data, size Read raw object data from the repository.

(self, oid: Oid | str)

Source from the content-addressed store, hash-verified

133
134 # Backwards compatible ODB access
135 def read(self, oid: Oid | str) -> tuple[int, bytes]:
136 """read(oid) -> type, data, size
137
138 Read raw object data from the repository.
139 """
140 return self.odb.read(oid)
141
142 def write(self, type: int, data: bytes | str) -> Oid:
143 """write(type, data) -> Oid

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected