| 466 | } |
| 467 | |
| 468 | struct ref *apply_negative_refspecs(struct ref *ref_map, struct refspec *rs) |
| 469 | { |
| 470 | struct ref **tail; |
| 471 | |
| 472 | for (tail = &ref_map; *tail; ) { |
| 473 | struct ref *ref = *tail; |
| 474 | |
| 475 | if (refname_matches_negative_refspec_item(ref->name, rs)) { |
| 476 | *tail = ref->next; |
| 477 | free(ref->peer_ref); |
| 478 | free(ref); |
| 479 | } else |
| 480 | tail = &ref->next; |
| 481 | } |
| 482 | |
| 483 | return ref_map; |
| 484 | } |
| 485 | |
| 486 | char *apply_refspecs(struct refspec *rs, const char *name) |
| 487 | { |
no test coverage detected