dulwich.pack.MemoryPackIndex(PackIndex)
class documentationdulwich.pack
(View In Hierarchy)
Method | __init__ | Create a new MemoryPackIndex. |
Method | get_pack_checksum | Return the SHA1 checksum stored for the corresponding packfile. |
Method | __len__ | Return the number of entries in this pack index. |
Method | object_sha1 | Return the SHA1 corresponding to the index in the pack file. |
Method | iterentries | Iterate over the entries in this pack index. |
Method | _object_index | See object_index. |
Method | _itersha | Yield all the SHA1's of the objects in the index, sorted. |
Inherited from PackIndex:
Method | __eq__ | Undocumented |
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 | objects_sha1 | Return the hex SHA1 over all the shas of all objects in this pack. |
Parameters | entries | Sequence of name, idx, crc32 (sorted) |
pack_checksum | Optional pack checksum |
Returns | 20-byte binary digest |
Parameters | sha | A binary SHA string. (20 characters long)_ |
Returns | iterator over tuples with object name, offset in packfile and crc32 checksum. |