code: func (s RefSpec) Dst(n plumbing.ReferenceName) plumbing.ReferenceName {
  	spec := string(s)
  	start := strings.Index(spec, refSpecSeparator) + 1
  	dst := spec[start:]
  	src := s.Src()
  
  	if !s.IsWildcard() {
  		return plumbing.ReferenceName(dst)
  	}
  
  	name := n.String()
  	ws := strings.Index(src, refSpecWildcard)
  	wd := strings.Index(dst, refSpecWildcard)
  	match := name[ws : len(name)-(len(src)-(ws+1))]
  
  	return plumbing.ReferenceName(dst[0:wd] + match + dst[wd+1:])
  }
docs: // Dst returns the destination for the given remote reference.