package
3.2.0+incompatible
Repository: https://github.com/dcu/go-git.git
Documentation: pkg.go.dev

# Functions

NewDecoder returns a new Decoder that reads from r.
NewError returns a new error.
NewParser returns a new Parser that reads from the packfile represented by r.
NewSeekable returns a new Seekable that reads form r.
NewStream returns a new Stream that reads form r.
PatchDelta returns the result of applying the modification deltas in delta to src.

# Constants

DefaultMaxObjectsLimit is the maximum amount of objects the decoder will decode before returning ErrMaxObjectsLimitReached.
Possible values of the Format type.
Possible values of the Format type.
Possible values of the Format type.
VersionSupported is the packfile version supported by this parser.

# Variables

ErrBadSignature is returned by ReadHeader when the signature in the packfile is incorrect.
ErrCannotRecall is returned by RecallByOffset or RecallByHash if the object to recall cannot be returned.
ErrDuplicatedObject is returned by Remember if an object appears several times in a packfile.
ErrEmptyPackfile is returned by ReadHeader when no data is found in the packfile.
ErrInvalidObject is returned by Decode when an invalid object is found in the packfile.
ErrMaxObjectsLimitReached is returned by Decode when the number of objects in the packfile is higher than Decoder.MaxObjectsLimit.
ErrPackEntryNotFound is returned by Decode when a reference in the packfile references and unknown object.
ErrUnsupportedVersion is returned by ReadHeader when the packfile version is different than VersionSupported.
ErrZLib is returned by Decode when there was an error unzipping the packfile contents.

# Structs

Decoder reads and decodes packfiles from an input stream.
Error specifies errors returned during packfile parsing.
A Parser is a collection of functions to read and process data form a packfile.
Seekable implements ReadRecaller for the io.ReadSeeker of a packfile.
Stream implements ReadRecaller for the io.Reader of a packfile.

# Interfaces

The ReadRecaller interface has all the functions needed by a packfile Parser to operate.

# Type aliases

Format specifies if the packfile uses ref-deltas or ofs-deltas.