CommitObject return a Commit with the given hash. If not found plumbing.ErrObjectNotFound is returned.
(h plumbing.Hash)
| 1433 | // CommitObject return a Commit with the given hash. If not found |
| 1434 | // plumbing.ErrObjectNotFound is returned. |
| 1435 | func (r *Repository) CommitObject(h plumbing.Hash) (*object.Commit, error) { |
| 1436 | return object.GetCommit(r.Storer, h) |
| 1437 | } |
| 1438 | |
| 1439 | // CommitObjects returns an unsorted CommitIter with all the commits in the repository. |
| 1440 | func (r *Repository) CommitObjects() (object.CommitIter, error) { |