package
1.5.0
Repository: https://github.com/devtron-labs/go-git.git
Documentation: pkg.go.dev

# Functions

NewDecoder builds a new idx stream decoder, that reads from r.
NewEncoder returns a new stream encoder that writes to w.
NewMemoryIndex returns an instance of a new MemoryIndex.

# Constants

VersionSupported is the only idx version supported.

# Variables

ErrMalformedIdxFile is returned by Decode when the idx file is corrupted.
ErrUnsupportedVersion is returned by Decode when the idx file version is not supported.

# Structs

Decoder reads and decodes idx files from an input stream.
Encoder writes MemoryIndex structs to an output stream.
Entry
Entry is the in memory representation of an object entry in the idx file.
MemoryIndex is the in memory representation of an idx file.
Writer implements a packfile Observer interface and is used to generate indexes.

# Interfaces

EntryIter is an iterator that will return the entries in a packfile index.
Index represents an index of a packfile.