code: func (r *Repository) Reference(name plumbing.ReferenceName, resolved bool) (
  	*plumbing.Reference, error) {
  
  	if resolved {
  		return storer.ResolveReference(r.Storer, name)
  	}
  
  	return r.Storer.Reference(name)
  }
docs: // Reference returns the reference for a given reference name. If resolved is
  // true, any symbolic reference will be resolved.