# Functions
NewEncoder returns a new stream encoder that writes to w.
NewMemoryIndex creates in-memory commit graph representation.
OpenFileIndex opens a serialized commit graph file in the format described at https://github.com/git/git/blob/master/Documentation/technical/commit-graph-format.txt.
# Variables
ErrMalformedCommitGraphFile is returned by OpenFileIndex when the commit graph file is corrupted.
ErrUnsupportedHash is returned by OpenFileIndex when the commit graph hash function is not supported.
ErrUnsupportedVersion is returned by OpenFileIndex when the commit graph file version is not supported.
# Structs
CommitData is a reduced representation of Commit as presented in the commit graph file.
Encoder writes MemoryIndex structs to an output stream.
MemoryIndex provides a way to build the commit-graph in memory for later encoding to file.
# Interfaces
Index represents a representation of commit graph that allows indexed access to the nodes using commit object hash.