MCPcopy Create free account
hub / github.com/git/git / is_unmatched_ref

Function is_unmatched_ref

fetch-pack.c:681–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681static 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
691static void filter_refs(struct fetch_pack_args *args,
692 struct ref **refs,

Callers 1

filter_refsFunction · 0.85

Calls 2

parse_oid_hexFunction · 0.85
oideqFunction · 0.85

Tested by

no test coverage detected