class documentation
class CommitGraph:
Constructors: CommitGraph.from_file(f), CommitGraph(object_format), CommitGraph._read_from_file(f)
Git commit graph file reader/writer.
| Class Method | from |
Read commit graph from file. |
| Method | __init__ |
Initialize CommitGraph. |
| Method | __iter__ |
Iterate over commit graph entries. |
| Method | __len__ |
Return number of commits in the graph. |
| Method | get |
Get commit graph entry by commit OID. |
| Method | get |
Get generation number for a commit. |
| Method | get |
Get parent commit IDs for a commit. |
| Method | write |
Write commit graph to file. |
| Instance Variable | chunks |
Undocumented |
| Instance Variable | entries |
Undocumented |
| Instance Variable | hash |
Undocumented |
| Instance Variable | object |
Undocumented |
| Class Method | _read |
Read commit graph data from file. |
| Method | _parse |
Parse chunk data into entries. |
| Method | _parse |
Parse extra parent edges for commits with 3+ parents. |
| Instance Variable | _oid |
Undocumented |
Initialize CommitGraph.
| Parameters | |
objectObjectFormat | None | Object format to use (defaults to SHA1) |