CommitObjects returns an unsorted CommitIter with all the commits in the repository.
()
| 1438 | |
| 1439 | // CommitObjects returns an unsorted CommitIter with all the commits in the repository. |
| 1440 | func (r *Repository) CommitObjects() (object.CommitIter, error) { |
| 1441 | iter, err := r.Storer.IterEncodedObjects(plumbing.CommitObject) |
| 1442 | if err != nil { |
| 1443 | return nil, err |
| 1444 | } |
| 1445 | |
| 1446 | return object.NewCommitIter(r.Storer, iter), nil |
| 1447 | } |
| 1448 | |
| 1449 | // BlobObject returns a Blob with the given hash. If not found |
| 1450 | // plumbing.ErrObjectNotFound is returned. |