code: func (r *Repository) CommitObjects() (object.CommitIter, error) {
  	iter, err := r.Storer.IterEncodedObjects(plumbing.CommitObject)
  	if err != nil {
  		return nil, err
  	}
  
  	return object.NewCommitIter(r.Storer, iter), nil
  }
docs: // CommitObjects returns an unsorted CommitIter with all the commits in the repository.