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

Function dir_add_name

dir.c:1850–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1848}
1849
1850static 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
1861struct dir_entry *dir_add_ignored(struct dir_struct *dir,
1862 struct index_state *istate,

Callers 1

Calls 2

index_file_existsFunction · 0.85
dir_entry_newFunction · 0.85

Tested by

no test coverage detected