TreeObject return a Tree with the given hash. If not found plumbing.ErrObjectNotFound is returned
(h plumbing.Hash)
| 1408 | // TreeObject return a Tree with the given hash. If not found |
| 1409 | // plumbing.ErrObjectNotFound is returned |
| 1410 | func (r *Repository) TreeObject(h plumbing.Hash) (*object.Tree, error) { |
| 1411 | return object.GetTree(r.Storer, h) |
| 1412 | } |
| 1413 | |
| 1414 | // TreeObjects returns an unsorted TreeIter with all the trees in the repository |
| 1415 | func (r *Repository) TreeObjects() (*object.TreeIter, error) { |