code: func (iter *storerCommitIter) ForEach(cb func(*Commit) error) error {
  	return iter.EncodedObjectIter.ForEach(func(obj plumbing.EncodedObject) error {
  		c, err := DecodeCommit(iter.s, obj)
  		if err != nil {
  			return err
  		}
  
  		return cb(c)
  	})
  }
docs: // ForEach call the cb function for each commit contained on this iter until
  // an error appends or the end of the iter is reached. If ErrStop is sent
  // the iteration is stopped but no error is returned. The iterator is closed.