TreeObjects returns an unsorted TreeIter with all the trees in the repository
()
| 1413 | |
| 1414 | // TreeObjects returns an unsorted TreeIter with all the trees in the repository |
| 1415 | func (r *Repository) TreeObjects() (*object.TreeIter, error) { |
| 1416 | iter, err := r.Storer.IterEncodedObjects(plumbing.TreeObject) |
| 1417 | if err != nil { |
| 1418 | return nil, err |
| 1419 | } |
| 1420 | |
| 1421 | return object.NewTreeIter(r.Storer, iter), nil |
| 1422 | } |
| 1423 | |
| 1424 | // CommitObject return a Commit with the given hash. If not found |
| 1425 | // plumbing.ErrObjectNotFound is returned. |