| 2949 | } |
| 2950 | |
| 2951 | void 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 | |
| 2963 | void remove_untracked_cache(struct index_state *istate) |
| 2964 | { |
no test coverage detected