MCPcopy Index your code
hub / github.com/go-git/go-git / NewTreeIter

Function NewTreeIter

plumbing/object/tree.go:599–601  ·  view source on GitHub ↗

NewTreeIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *TreeIter that iterates over all tree contained in the storer.EncodedObjectIter. Any non-tree object returned by the storer.EncodedObjectIter is skipped.

(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter)

Source from the content-addressed store, hash-verified

597//
598// Any non-tree object returned by the storer.EncodedObjectIter is skipped.
599func NewTreeIter(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter) *TreeIter {
600 return &TreeIter{iter, s}
601}
602
603// Next moves the iterator to the next tree and returns a pointer to it. If
604// there are no more trees, it returns io.EOF.

Callers 2

TreeObjectsMethod · 0.92
TestTreeIterMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestTreeIterMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…