Objects returns an unsorted ObjectIter with all the objects in the repository.
()
| 1493 | |
| 1494 | // Objects returns an unsorted ObjectIter with all the objects in the repository. |
| 1495 | func (r *Repository) Objects() (*object.ObjectIter, error) { |
| 1496 | iter, err := r.Storer.IterEncodedObjects(plumbing.AnyObject) |
| 1497 | if err != nil { |
| 1498 | return nil, err |
| 1499 | } |
| 1500 | |
| 1501 | return object.NewObjectIter(r.Storer, iter), nil |
| 1502 | } |
| 1503 | |
| 1504 | // Head returns the reference where HEAD is pointing to. |
| 1505 | func (r *Repository) Head() (*plumbing.Reference, error) { |