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

Function apply_negative_refspecs

refspec.c:468–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468struct 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
486char *apply_refspecs(struct refspec *rs, const char *name)
487{

Callers 2

match_push_refsFunction · 0.85
get_ref_mapFunction · 0.85

Tested by

no test coverage detected