* Loads the exclude lists for the directory containing pathname, then * scans all exclude lists to determine whether pathname is excluded. * Returns 1 if true, otherwise 0. */
| 1829 | * Returns 1 if true, otherwise 0. |
| 1830 | */ |
| 1831 | int is_excluded(struct dir_struct *dir, struct index_state *istate, |
| 1832 | const char *pathname, int *dtype_p) |
| 1833 | { |
| 1834 | struct path_pattern *pattern = |
| 1835 | last_matching_pattern(dir, istate, pathname, dtype_p); |
| 1836 | if (pattern) |
| 1837 | return pattern->flags & PATTERN_FLAG_NEGATIVE ? 0 : 1; |
| 1838 | return 0; |
| 1839 | } |
| 1840 | |
| 1841 | static struct dir_entry *dir_entry_new(const char *pathname, int len) |
| 1842 | { |
no test coverage detected