package
5.0.0-20241215183534-c7a8253f2873
Repository: https://github.com/grahambrooks/go-git.git
Documentation: pkg.go.dev

# Functions

ChunkTypeFromBytes returns the chunk type for the given byte signature.
NewEncoder returns a new stream encoder that writes to w.
NewMemoryIndex creates in-memory commit graph representation.
OpenChainFile reads a commit chain file and returns a slice of the hashes within it Commit-Graph chains are described at https://git-scm.com/docs/commit-graph and are new line separated list of graph file hashes, oldest to newest.
OpenChainIndex expects a billy.Filesystem representing a .git directory.
OpenChainOrFileIndex expects a billy.Filesystem representing a .git directory.
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.
OpenFileIndexWithParent opens a serialized commit graph file in the format described at https://github.com/git/git/blob/master/Documentation/technical/commit-graph-format.txt.

# Constants

# 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.
ReaderAtCloser is an interface that combines io.ReaderAt and io.Closer.

# Type aliases

ChunkType represents the type of a chunk in the commit graph file.