| 1859 | } |
| 1860 | |
| 1861 | struct dir_entry *dir_add_ignored(struct dir_struct *dir, |
| 1862 | struct index_state *istate, |
| 1863 | const char *pathname, int len) |
| 1864 | { |
| 1865 | if (!index_name_is_other(istate, pathname, len)) |
| 1866 | return NULL; |
| 1867 | |
| 1868 | ALLOC_GROW(dir->ignored, dir->ignored_nr+1, dir->internal.ignored_alloc); |
| 1869 | return dir->ignored[dir->ignored_nr++] = dir_entry_new(pathname, len); |
| 1870 | } |
| 1871 | |
| 1872 | enum exist_status { |
| 1873 | index_nonexistent = 0, |
no test coverage detected