dulwich.pack.PackIndex1(FilePackIndex)
class documentationdulwich.pack
(View In Hierarchy)
Method | __init__ | Create a pack index object. |
Method | _unpack_entry | Unpack the i-th entry in the index file. |
Method | _unpack_name | Unpack the i-th name from the index file. |
Method | _unpack_offset | Unpack the i-th object offset from the index file. |
Method | _unpack_crc32_checksum | Unpack the crc32 checksum for the ith object from the index file. |
Inherited from PackIndex (via FilePackIndex):
Method | __ne__ | Undocumented |
Method | __iter__ | Iterate over the SHAs in this pack. |
Method | object_index | Return the index in to the corresponding packfile for the object. |
Method | object_sha1 | Return the SHA1 corresponding to the index in the pack file. |
Method | objects_sha1 | Return the hex SHA1 over all the shas of all objects in this pack. |
Inherited from PackIndex (via FilePackIndex):
Method | __ne__ | Undocumented |
Method | __iter__ | Iterate over the SHAs in this pack. |
Method | object_index | Return the index in to the corresponding packfile for the object. |
Method | object_sha1 | Return the SHA1 corresponding to the index in the pack file. |
Method | objects_sha1 | Return the hex SHA1 over all the shas of all objects in this pack. |
Create a pack index object.
Provide it with the name of the index file to consider, and it will map it whenever required.
Returns | Tuple with object name (SHA), offset in pack file and CRC32 checksum (if known). |