MCPcopy
hub / github.com/go-git/go-git / graphCommitNode

Struct graphCommitNode

plumbing/object/commitgraph/commitnode_graph.go:18–26  ·  view source on GitHub ↗

graphCommitNode is a reduced representation of Commit as presented in the commit graph file (commitgraph.Node). It is merely useful as an optimization for walking the commit graphs. graphCommitNode implements the CommitNode interface.

Source from the content-addressed store, hash-verified

16//
17// graphCommitNode implements the CommitNode interface.
18type graphCommitNode struct {
19 // Hash for the Commit object
20 hash plumbing.Hash
21 // Index of the node in the commit graph file
22 index uint32
23
24 commitData *commitgraph.CommitData
25 gci *graphCommitNodeIndex
26}
27
28// graphCommitNodeIndex is an index that can load CommitNode objects from both the commit
29// graph files and the object store.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected