code: func (d *DotGit) Objects() ([]plumbing.Hash, error) {
  	if d.options.ExclusiveAccess {
  		err := d.genObjectList()
  		if err != nil {
  			return nil, err
  		}
  
  		return d.objectList, nil
  	}
  
  	var objects []plumbing.Hash
  	err := d.ForEachObjectHash(func(hash plumbing.Hash) error {
  		objects = append(objects, hash)
  		return nil
  	})
  	if err != nil {
  		return nil, err
  	}
  	return objects, nil
  }
docs: // Objects returns a slice with the hashes of objects found under the
  // .git/objects/ directory.