dulwich.pack.Pack(object)
class documentationdulwich.pack
(View In Hierarchy)
Known subclasses: dulwich.contrib.swift.SwiftPack
Method | __init__ | Undocumented |
Class Method | from_lazy_objects | Create a new pack object from callables to load pack data and index objects. |
Class Method | from_objects | Create a new pack object from pack data and index objects. |
Method | name | The SHA over the SHAs of the objects in this pack. |
Method | data | The pack data object being used. |
Method | index | The index being used. |
Method | close | Undocumented |
Method | __enter__ | Undocumented |
Method | __exit__ | Undocumented |
Method | __eq__ | Undocumented |
Method | __len__ | Number of entries in this pack. |
Method | __repr__ | Undocumented |
Method | __iter__ | Iterate over all the sha1s of the objects in this pack. |
Method | check_length_and_checksum | Sanity check the length and checksum of the pack index and data. |
Method | check | Check the integrity of this pack. |
Method | get_stored_checksum | Undocumented |
Method | __contains__ | Check whether this pack contains a particular SHA1. |
Method | get_raw_unresolved | Get raw unresolved data for a SHA. |
Method | get_raw | Undocumented |
Method | __getitem__ | Retrieve the specified SHA1. |
Method | iterobjects | Iterate over the objects in this pack. |
Method | pack_tuples | Provide an iterable for use with write_pack_objects. |
Method | keep | Add a .keep file for the pack, preventing git from garbage collecting it. |
Raises | ChecksumMismatch | if a checksum for the index or data is wrong |
Parameters | sha1 | SHA to return data for |
Returns | Tuple with pack object type, delta base (if applicable), list of data chunks |