Objects returns an unsorted ObjectIter with all the objects in the repository.
()
| 1484 | |
| 1485 | // Objects returns an unsorted ObjectIter with all the objects in the repository. |
| 1486 | func (r *Repository) Objects() (*object.ObjectIter, error) { |
| 1487 | iter, err := r.Storer.IterEncodedObjects(plumbing.AnyObject) |
| 1488 | if err != nil { |
| 1489 | return nil, err |
| 1490 | } |
| 1491 | |
| 1492 | return object.NewObjectIter(r.Storer, iter), nil |
| 1493 | } |
| 1494 | |
| 1495 | // Head returns the reference where HEAD is pointing to. |
| 1496 | func (r *Repository) Head() (*plumbing.Reference, error) { |