CommitObject return a Commit with the given hash. If not found plumbing.ErrObjectNotFound is returned.
(h plumbing.Hash)
| 1424 | // CommitObject return a Commit with the given hash. If not found |
| 1425 | // plumbing.ErrObjectNotFound is returned. |
| 1426 | func (r *Repository) CommitObject(h plumbing.Hash) (*object.Commit, error) { |
| 1427 | return object.GetCommit(r.Storer, h) |
| 1428 | } |
| 1429 | |
| 1430 | // CommitObjects returns an unsorted CommitIter with all the commits in the repository. |
| 1431 | func (r *Repository) CommitObjects() (object.CommitIter, error) { |