| 679 | } |
| 680 | |
| 681 | static int is_unmatched_ref(const struct ref *ref) |
| 682 | { |
| 683 | struct object_id oid; |
| 684 | const char *p; |
| 685 | return ref->match_status == REF_NOT_MATCHED && |
| 686 | !parse_oid_hex(ref->name, &oid, &p) && |
| 687 | *p == '\0' && |
| 688 | oideq(&oid, &ref->old_oid); |
| 689 | } |
| 690 | |
| 691 | static void filter_refs(struct fetch_pack_args *args, |
| 692 | struct ref **refs, |
no test coverage detected