| 1549 | } |
| 1550 | |
| 1551 | int 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 | |
| 1567 | void init_ref_exclusions(struct ref_exclusions *exclusions) |
| 1568 | { |
no test coverage detected