class documentation
Multi-pack-index for efficient object lookup across multiple pack files.
| Method | __contains__ |
Check if the given object SHA is in this MIDX. |
| Method | __init__ |
Initialize a MultiPackIndex. |
| Method | __len__ |
Return the number of objects in this MIDX. |
| Method | close |
Close the MIDX file and release mmap resources. |
| Method | iterentries |
Iterate over all entries in this MIDX. |
| Method | object |
Return the pack name and offset for the given object. |
| Instance Variable | base |
Undocumented |
| Instance Variable | chunk |
Undocumented |
| Instance Variable | hash |
Undocumented |
| Instance Variable | hash |
Undocumented |
| Instance Variable | object |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | pack |
Undocumented |
| Instance Variable | version |
Undocumented |
| Method | _get |
Get the object ID at the given index. |
| Method | _get |
Get pack ID and offset for object at the given index. |
| Method | _load |
Load contents from a file, preferring mmap when possible. |
| Method | _parse |
Parse the chunk lookup table. |
| Method | _parse |
Parse the MIDX header. |
| Method | _parse |
Parse the Large Offsets (LOFF) chunk. |
| Method | _parse |
Parse the OID Fanout (OIDF) chunk. |
| Method | _parse |
Parse the OID Lookup (OIDL) chunk. |
| Method | _parse |
Parse the Object Offsets (OOFF) chunk. |
| Method | _parse |
Parse the Packfile Names (PNAM) chunk. |
| Instance Variable | _chunks |
Undocumented |
| Instance Variable | _contents |
Undocumented |
| Instance Variable | _fanout |
Undocumented |
| Instance Variable | _file |
Undocumented |
| Instance Variable | _filename |
Undocumented |
| Instance Variable | _loff |
Undocumented |
| Instance Variable | _oidl |
Undocumented |
| Instance Variable | _ooff |
Undocumented |
| Instance Variable | _size |
Undocumented |
Check if the given object SHA is in this MIDX.
| Parameters | |
sha:ObjectID | RawObjectID | Binary SHA hash |
| Returns | |
bool | True if the object is in this MIDX |
Get the object ID at the given index.
| Parameters | |
index:int | Index of the object |
| Returns | |
RawObjectID | Binary object ID |