package
4.0.0-rc1+incompatible
Repository: https://github.com/stupidhod/go-git.git
Documentation: pkg.go.dev

# Functions

ApplyDelta writes to taget the result of applying the modification deltas in delta to base.
NewDecoder returns a new Decoder that reads from r.
NewError returns a new error.
NewScanner returns a new Scanner based on a reader, if the given reader implements io.ReadSeeker the Scanner will be also Seekable.
PatchDelta returns the result of applying the modification deltas in delta to src.

# Constants

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.
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.
ErrNonSeekable is returned if a NewDecoder is used with a non-seekable reader and without a core.ObjectStorage or ReadObjectAt method is called without a seekable scanner.
ErrPackEntryNotFound is returned by Decode when a reference in the packfile references and unknown object.
ErrSeekNotSupported returned if seek is not support.
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.
ObjectHeader contains the information related to the object, this information is collected from the previous bytes to the content of the object.
No description provided by the author

# Type aliases

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