IsWildcard returns true if the RefSpec contains a wildcard.
()
| 90 | |
| 91 | // IsWildcard returns true if the RefSpec contains a wildcard. |
| 92 | func (s RefSpec) IsWildcard() bool { |
| 93 | return strings.Contains(string(s), refSpecWildcard) |
| 94 | } |
| 95 | |
| 96 | func (s RefSpec) matchExact(n plumbing.ReferenceName) bool { |
| 97 | return s.Src() == n.String() |
no test coverage detected