TreeObject return a Tree with the given hash. If not found plumbing.ErrObjectNotFound is returned
(h plumbing.Hash)
| 1417 | // TreeObject return a Tree with the given hash. If not found |
| 1418 | // plumbing.ErrObjectNotFound is returned |
| 1419 | func (r *Repository) TreeObject(h plumbing.Hash) (*object.Tree, error) { |
| 1420 | return object.GetTree(r.Storer, h) |
| 1421 | } |
| 1422 | |
| 1423 | // TreeObjects returns an unsorted TreeIter with all the trees in the repository |
| 1424 | func (r *Repository) TreeObjects() (*object.TreeIter, error) { |