| 333 | } |
| 334 | |
| 335 | int refname_matches_negative_refspec_item(const char *refname, struct refspec *rs) |
| 336 | { |
| 337 | int i; |
| 338 | |
| 339 | for (i = 0; i < rs->nr; i++) { |
| 340 | if (rs->items[i].negative && refspec_match(&rs->items[i], refname)) |
| 341 | return 1; |
| 342 | } |
| 343 | return 0; |
| 344 | } |
| 345 | |
| 346 | static int refspec_find_negative_match(struct refspec *rs, struct refspec_item *query) |
| 347 | { |
no test coverage detected