MatchAny returns true if any of the RefSpec match with the given ReferenceName.
(l []RefSpec, n plumbing.ReferenceName)
| 145 | |
| 146 | // MatchAny returns true if any of the RefSpec match with the given ReferenceName. |
| 147 | func MatchAny(l []RefSpec, n plumbing.ReferenceName) bool { |
| 148 | for _, r := range l { |
| 149 | if r.Match(n) { |
| 150 | return true |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | return false |
| 155 | } |