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

Function refspec_match

refspec.c:326–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326static int refspec_match(const struct refspec_item *refspec,
327 const char *name)
328{
329 if (refspec->pattern)
330 return match_refname_with_pattern(refspec->src, name, NULL, NULL);
331
332 return !strcmp(refspec->src, name);
333}
334
335int refname_matches_negative_refspec_item(const char *refname, struct refspec *rs)
336{

Callers 1

Calls 1

Tested by

no test coverage detected