| 1848 | } |
| 1849 | |
| 1850 | static struct dir_entry *dir_add_name(struct dir_struct *dir, |
| 1851 | struct index_state *istate, |
| 1852 | const char *pathname, int len) |
| 1853 | { |
| 1854 | if (index_file_exists(istate, pathname, len, ignore_case)) |
| 1855 | return NULL; |
| 1856 | |
| 1857 | ALLOC_GROW(dir->entries, dir->nr+1, dir->internal.alloc); |
| 1858 | return dir->entries[dir->nr++] = dir_entry_new(pathname, len); |
| 1859 | } |
| 1860 | |
| 1861 | struct dir_entry *dir_add_ignored(struct dir_struct *dir, |
| 1862 | struct index_state *istate, |
no test coverage detected