code: func (d *DotGit) Refs() ([]*plumbing.Reference, error) {
  	var refs []*plumbing.Reference
  	var seen = make(map[plumbing.ReferenceName]bool)
  	if err := d.addRefsFromRefDir(&refs, seen); err != nil {
  		return nil, err
  	}
  
  	if err := d.addRefsFromPackedRefs(&refs, seen); err != nil {
  		return nil, err
  	}
  
  	if err := d.addRefFromHEAD(&refs); err != nil {
  		return nil, err
  	}
  
  	return refs, nil
  }
docs: // Refs scans the git directory collecting references, which it returns.
  // Symbolic references are resolved and included in the output.