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

Function refname_matches_negative_refspec_item

refspec.c:335–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335int 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
346static int refspec_find_negative_match(struct refspec *rs, struct refspec_item *query)
347{

Callers 3

apply_negative_refspecsFunction · 0.85
get_ref_statesFunction · 0.85

Calls 1

refspec_matchFunction · 0.85

Tested by

no test coverage detected