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

Function dir_add_ignored

dir.c:1861–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1859}
1860
1861struct 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
1872enum exist_status {
1873 index_nonexistent = 0,

Callers 2

cmd_addFunction · 0.85

Calls 2

index_name_is_otherFunction · 0.85
dir_entry_newFunction · 0.85

Tested by

no test coverage detected