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

Function ref_excluded

revision.c:1551–1565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549}
1550
1551int ref_excluded(const struct ref_exclusions *exclusions, const char *path)
1552{
1553 const char *stripped_path = strip_namespace(path);
1554 struct string_list_item *item;
1555
1556 for_each_string_list_item(item, &exclusions->excluded_refs) {
1557 if (!wildmatch(item->string, path, 0))
1558 return 1;
1559 }
1560
1561 if (ref_is_hidden(stripped_path, path, &exclusions->hidden_refs))
1562 return 1;
1563
1564 return 0;
1565}
1566
1567void init_ref_exclusions(struct ref_exclusions *exclusions)
1568{

Callers 3

handle_one_refFunction · 0.85
should_pack_refFunction · 0.85
show_referenceFunction · 0.85

Calls 3

strip_namespaceFunction · 0.85
wildmatchFunction · 0.85
ref_is_hiddenFunction · 0.85

Tested by

no test coverage detected