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

Function get_namespaced_exclude_patterns

refs.c:1766–1777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1764}
1765
1766const char **get_namespaced_exclude_patterns(const char **exclude_patterns,
1767 const char *namespace,
1768 struct strvec *out)
1769{
1770 if (!namespace || !*namespace || !exclude_patterns || !*exclude_patterns)
1771 return exclude_patterns;
1772
1773 for (size_t i = 0; exclude_patterns[i]; i++)
1774 strvec_pushf(out, "%s%s", namespace, exclude_patterns[i]);
1775
1776 return out->v;
1777}
1778
1779const char *find_descendant_ref(const char *dirname,
1780 const struct string_list *extras,

Callers 2

refs_for_each_ref_extFunction · 0.85
write_head_infoFunction · 0.85

Calls 1

strvec_pushfFunction · 0.85

Tested by

no test coverage detected