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

Struct node

utils/merkletrie/index/node.go:17–23  ·  view source on GitHub ↗

The node represents a index.Entry or a directory inferred from the path of all entries. It implements the interface noder.Noder of merkletrie package. This implementation implements a "standard" hash method being able to be compared with any other noder.Noder implementation inside of go-git

Source from the content-addressed store, hash-verified

15// This implementation implements a "standard" hash method being able to be
16// compared with any other noder.Noder implementation inside of go-git
17type node struct {
18 path string
19 entry *index.Entry
20 children []noder.Noder
21 isDir bool
22 skip bool
23}
24
25// NewRootNode returns the root node of a computed tree from a index.Index,
26func NewRootNode(idx *index.Index) noder.Noder {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected