| 324 | } |
| 325 | |
| 326 | static int refspec_match(const struct refspec_item *refspec, |
| 327 | const char *name) |
| 328 | { |
| 329 | if (refspec->pattern) |
| 330 | return match_refname_with_pattern(refspec->src, name, NULL, NULL); |
| 331 | |
| 332 | return !strcmp(refspec->src, name); |
| 333 | } |
| 334 | |
| 335 | int refname_matches_negative_refspec_item(const char *refname, struct refspec *rs) |
| 336 | { |
no test coverage detected