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
| 15 | // This implementation implements a "standard" hash method being able to be |
| 16 | // compared with any other noder.Noder implementation inside of go-git |
| 17 | type 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, |
| 26 | func NewRootNode(idx *index.Index) noder.Noder { |
nothing calls this directly
no outgoing calls
no test coverage detected