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

# Functions

ApplyDelta writes to target the result of applying the modification deltas in delta to base.
DiffDelta returns the delta that transforms src into tgt.
GetDelta returns an EncodedObject of type OFSDeltaObject.
NewEncoder creates a new packfile encoder using a specific Writer and EncodedObjectStorer.
NewError returns a new error.
NewFSObject creates a new filesystem object.
NewPackfile returns a packfile representation for the given packfile file and packfile idx.
NewPackfileWithCache creates a new Packfile with the given object cache.
NewParser creates a new Parser.
NewParserWithStorage creates a new Parser.
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.
UpdateObjectStorage updates the storer with the objects in the given packfile.
WritePackfileToObjectStorage writes all the packfile objects into the given object storage.

# Constants

VersionSupported is the packfile version supported by this package.

# Variables

ErrBadSignature is returned by ReadHeader when the signature in the packfile is incorrect.
No description provided by the author
ErrDeltaNotCached is returned when the delta could not be found in cache.
ErrEmptyPackfile is returned by ReadHeader when no data is found in the packfile.
No description provided by the author
ErrInvalidObject is returned by Decode when an invalid object is found in the packfile.
ErrNotSeekableSource is returned when the source for the parser is not seekable and a storage was not provided, so it can't be parsed.
ErrReferenceDeltaNotFound is returned when the reference delta is not found.
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.
No description provided by the author

# Structs

Encoder gets the data from the storage and write it into the writer in PACK format.
Error specifies errors returned during packfile parsing.
FSObject is an object from the packfile on the filesystem.
ObjectHeader contains the information related to the object, this information is collected from the previous bytes to the content of the object.
ObjectToPack is a representation of an object that is going to be into a pack file.
Packfile allows retrieving information from inside a packfile.
Parser decodes a packfile and calls any observer associated to it.
No description provided by the author

# Interfaces

Observer interface is implemented by index encoders.