class documentation
class ObjectContainer(Protocol):
Known subclasses: dulwich.pack.PackedObjectContainer
Protocol for objects that can contain git objects.
| 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. |
overridden in
dulwich.object_store.DiskObjectStore, dulwich.object_store.DiskObjectStore, dulwich.object_store.MemoryObjectStoreAdd a single object to this object store.
def add_objects(self, objects:
Sequence[ tuple[ ShaFile, str | None]], progress: Callable[ ..., None] | None = None) -> Pack | None:
¶
Get the commit graph for this object store.
| Returns | |
CommitGraph | None | CommitGraph object if available, None otherwise |