package
5.13.2
Repository: https://github.com/go-git/go-git.git
Documentation: pkg.go.dev

# Packages

Package v2 implements encoding and decoding of commit-graph files.

# Functions

NewEncoder returns a new stream encoder that writes to w.
NewMemoryIndex creates in-memory commit graph representation Deprecated: This package uses the wrong types for Generation and Index in CommitData.
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 Deprecated: This package uses the wrong types for Generation and Index in CommitData.

# 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 Deprecated: This package uses the wrong types for Generation and Index in CommitData.