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

# Functions

ComputeHash compute the hash for a given ObjectType and content.
ForEachIterator is a helper function to build iterators without need to rewrite the same ForEach function each time.
NewHash return a new Hash from a hexadecimal hash representation.
No description provided by the author
NewHashReference creates a new HashReference reference.
NewMultiObjectIter returns an object iterator for the given slice of objects.
NewObjectLookupIter returns an object iterator given an object storage and a slice of object hashes.
NewObjectSliceIter returns an object iterator for the given slice of objects.
No description provided by the author
NewReferenceFromStrings creates a reference from name and target as string, the resulting reference can be a SymbolicReference or a HashReference base on the target provided.
NewReferenceSliceIter returns a reference iterator for the given slice of objects.
NewSymbolicReference creates a new SymbolicReference reference.
No description provided by the author
ParseObjectType parses a string representation of ObjectType.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
5 reserved for future expansion.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrInvalidType is returned when an invalid object type is provided.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrStop is used to stop a ForEach function in an Iter.
ZeroHash is Hash with value zero.

# Structs

No description provided by the author
MemoryObject on memory Object implementation.
MultiObjectIter implements ObjectIter.
ObjectLookupIter implements ObjectIter.
ObjectSliceIter implements ObjectIter.
No description provided by the author
Reference is a representation of git reference.
ReferenceSliceIter implements ReferenceIter.
No description provided by the author

# Interfaces

Object is a generic representation of any git object.
ObjectIter is a generic closable interface for iterating over objects.
ObjectStorage generic storage of objects.
ObjectStorageWrite is a optional method for ObjectStorage, it enable direct write of packfile to the storage.
ReferenceIter is a generic closable interface for iterating over references.
ReferenceStorage generic storage of references.
TxObjectStorage is an in-progress storage transaction.

# Type aliases

Hash SHA1 hased content.
ObjectReader is a generic representation of an object reader.
ObjectType internal object type Integer values from 0 to 7 map to those exposed by git.
ObjectWriter is a generic representation of an object writer.
ReferenceName reference name's.
ReferenceType reference type's.