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

Function add_untracked

dir.c:2514–2521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2512}
2513
2514static void add_untracked(struct untracked_cache_dir *dir, const char *name)
2515{
2516 if (!dir)
2517 return;
2518 ALLOC_GROW(dir->untracked, dir->untracked_nr + 1,
2519 dir->untracked_alloc);
2520 dir->untracked[dir->untracked_nr++] = xstrdup(name);
2521}
2522
2523static int valid_cached_dir(struct dir_struct *dir,
2524 struct untracked_cache_dir *untracked,

Callers 2

read_directory_recursiveFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected