package
4.3.1+incompatible
Repository: https://github.com/git-time-metric/go-git.git
Documentation: pkg.go.dev
# Functions
DecodeObject decodes an encoded object into a *Blob.
DecodeCommit decodes an encoded object into a *Commit and associates it to the given object storer.
DecodeObject decodes an encoded object into an Object and associates it to the given object storer.
DecodeTag decodes an encoded object into a *Commit and associates it to the given object storer.
DecodeTree decodes an encoded object into a *Tree and associates it to the given object storer.
DiffTree compares the content and mode of the blobs found via two tree objects.
GetBlob gets a blob from an object storer and decodes it.
GetCommit gets a commit from an object storer and decodes it.
GetObject gets an object from an object storer and decodes it.
GetTag gets a tag from an object storer and decodes it.
GetTree gets a tree from an object storer and decodes it.
NewBlobIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *BlobIter that iterates over all blobs contained in the storer.EncodedObjectIter.
NewCommitIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a CommitIter that iterates over all commits contained in the storer.EncodedObjectIter.
NewCommitIterBSF returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents in pre-order.
NewCommitIterCTime returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents while preserving Committer Time order.
NewCommitPostorderIter returns a CommitIter that walks the commit history like WalkCommitHistory but in post-order.
NewCommitPreorderIter returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents in pre-order.
NewFile returns a File based on the given blob object.
NewFileIter takes a storer.EncodedObjectStorer and a Tree and returns a *FileIter that iterates over all files contained in the tree, recursively.
NewObjectIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns an *ObjectIter that iterates over all objects contained in the storer.EncodedObjectIter.
NewTagIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *TagIter that iterates over all tags contained in the storer.EncodedObjectIter.
NewTreeIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *TreeIter that iterates over all tree contained in the storer.EncodedObjectIter.
NewTreeRootNode returns the root node of a Tree.
NewTreeWalker returns a new TreeWalker for the given tree.
# Constants
DateFormat is the format being used in the original git implementation.
# Variables
New errors defined by this package.
New errors defined by this package.
New errors defined by this package.
No description provided by the author
ErrUnsupportedObject trigger when a non-supported object is being decoded.
# Structs
Blob is used to store arbitrary data - it is generally a file.
BlobIter provides an iterator for a set of blobs.
Change values represent a detected change between two git trees.
ChangeEntry values represent a node that has suffered a change.
Commit points to a single tree, marking it as what the project looked like at a certain point in time.
File represents git file objects.
FileIter provides an iterator for the files in a tree.
FileStat stores the status of changes in content of a file.
ObjectIter provides an iterator for a set of objects.
textPatch is an implementation of fdiff.Patch interface.
Signature is used to identify who and when created a commit or tag.
Tag represents an annotated tag object.
TagIter provides an iterator for a set of tags.
Tree is basically like a directory - it references a bunch of other trees and/or blobs (i.e.
TreeEntry represents a file.
TreeIter provides an iterator for a set of trees.
TreeWalker provides a means of walking through all of the entries in a Tree.
# Interfaces
CommitIter is a generic closable interface for iterating over commits.
Object is a generic representation of any git object.