CommitObjects returns an unsorted CommitIter with all the commits in the repository.
()
| 1429 | |
| 1430 | // CommitObjects returns an unsorted CommitIter with all the commits in the repository. |
| 1431 | func (r *Repository) CommitObjects() (object.CommitIter, error) { |
| 1432 | iter, err := r.Storer.IterEncodedObjects(plumbing.CommitObject) |
| 1433 | if err != nil { |
| 1434 | return nil, err |
| 1435 | } |
| 1436 | |
| 1437 | return object.NewCommitIter(r.Storer, iter), nil |
| 1438 | } |
| 1439 | |
| 1440 | // BlobObject returns a Blob with the given hash. If not found |
| 1441 | // plumbing.ErrObjectNotFound is returned. |