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

Function add_untracked_cache

dir.c:2951–2961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2949}
2950
2951void add_untracked_cache(struct index_state *istate)
2952{
2953 if (!istate->untracked) {
2954 new_untracked_cache(istate, -1);
2955 } else {
2956 if (!ident_in_untracked(istate->untracked)) {
2957 free_untracked_cache(istate->untracked);
2958 new_untracked_cache(istate, -1);
2959 }
2960 }
2961}
2962
2963void remove_untracked_cache(struct index_state *istate)
2964{

Callers 3

add_fsmonitorFunction · 0.85
tweak_untracked_cacheFunction · 0.85
cmd_update_indexFunction · 0.85

Calls 3

new_untracked_cacheFunction · 0.85
ident_in_untrackedFunction · 0.85
free_untracked_cacheFunction · 0.85

Tested by

no test coverage detected