MCPcopy Index your code
hub / github.com/git/git / new_untracked_cache

Function new_untracked_cache

dir.c:2940–2949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2938}
2939
2940static void new_untracked_cache(struct index_state *istate, int flags)
2941{
2942 struct untracked_cache *uc = xcalloc(1, sizeof(*uc));
2943 strbuf_init(&uc->ident, 100);
2944 uc->exclude_per_dir = ".gitignore";
2945 uc->dir_flags = flags >= 0 ? flags : new_untracked_cache_flags(istate);
2946 set_untracked_ident(uc);
2947 istate->untracked = uc;
2948 istate->cache_changed |= UNTRACKED_CHANGED;
2949}
2950
2951void add_untracked_cache(struct index_state *istate)
2952{

Callers 2

add_untracked_cacheFunction · 0.85
validate_untracked_cacheFunction · 0.85

Calls 4

xcallocFunction · 0.85
strbuf_initFunction · 0.85
set_untracked_identFunction · 0.85

Tested by

no test coverage detected