class documentation
class PackedObjectContainer(ObjectContainer):
Known subclasses: dulwich.object_store.PackBasedObjectStore, dulwich.object_store.PackCapableObjectStore
Container for objects packed in a pack file.
| Method | get |
Get a raw unresolved object. |
| Method | iter |
Iterate over unpacked objects from a subset of SHAs. |
| Method | iterobjects |
Iterate over a subset of objects. |
Inherited from ObjectContainer:
| Method | __contains__ |
Check if a hex sha is present. |
| Method | __getitem__ |
Retrieve an object. |
| Method | add |
Add a single object to this object store. |
| Method | add |
Add a set of objects to this object store. |
| Method | get |
Get the commit graph for this object store. |
def get_unpacked_object(self, sha1:
ObjectID | RawObjectID, *, include_comp: bool = False) -> UnpackedObject:
¶
overridden in
dulwich.object_store.PackBasedObjectStore, dulwich.object_store.PackCapableObjectStoreGet a raw unresolved object.
| Parameters | |
sha1:ObjectID | RawObjectID | SHA-1 hash of the object |
includebool | Whether to include compressed data |
| Returns | |
UnpackedObject | UnpackedObject instance |
def iter_unpacked_subset(self, shas:
Iterable[ ObjectID | RawObjectID], *, include_comp: bool = False, allow_missing: bool = False, convert_ofs_delta: bool = True) -> Iterator[ UnpackedObject]:
¶
Iterate over unpacked objects from a subset of SHAs.
| Parameters | |
shas:Iterable[ | Set of object SHAs to retrieve |
includebool | Include compressed data if True |
allowbool | If True, skip missing objects |
convertbool | If True, convert offset deltas to ref deltas |
| Returns | |
Iterator[ | Iterator of UnpackedObject instances |
def iterobjects_subset(self, shas:
Iterable[ ObjectID], *, allow_missing: bool = False) -> Iterator[ ShaFile]:
¶