Match match the given plumbing.ReferenceName against the source.
(n plumbing.ReferenceName)
| 81 | |
| 82 | // Match match the given plumbing.ReferenceName against the source. |
| 83 | func (s RefSpec) Match(n plumbing.ReferenceName) bool { |
| 84 | if !s.IsWildcard() { |
| 85 | return s.matchExact(n) |
| 86 | } |
| 87 | |
| 88 | return s.matchGlob(n) |
| 89 | } |
| 90 | |
| 91 | // IsWildcard returns true if the RefSpec contains a wildcard. |
| 92 | func (s RefSpec) IsWildcard() bool { |
nothing calls this directly
no test coverage detected