package
5.0.0-20241215183534-c7a8253f2873
Repository: https://github.com/grahambrooks/go-git.git
Documentation: pkg.go.dev
# Functions
NewCommitNodeIterAuthorDateOrder returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents in Author Time order but with the constraint that no parent is emitted before its children are emitted.
NewCommitNodeIterCTime returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents while preserving Committer Time order.
NewCommitNodeIterDateOrder returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents in Committer Time and Generation order, but with the constraint that no parent is emitted before its children are emitted.
NewCommitNodeIterTopoOrder returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents in a topological order but with the constraint that no parent is emitted before its children are emitted.
NewGraphCommitNodeIndex returns CommitNodeIndex implementation that uses commit-graph files as backing storage and falls back to object storage when necessary.
NewObjectCommitNodeIndex returns CommitNodeIndex implementation that uses only object storage to load the nodes.
# Interfaces
CommitNode is generic interface encapsulating a lightweight commit object retrieved from CommitNodeIndex.
CommitNodeIndex is generic interface encapsulating an index of CommitNode objects.
CommitNodeIter is a generic closable interface for iterating over commit nodes.