| 141 | } |
| 142 | |
| 143 | static void replace_index_entry(struct index_state *istate, int nr, struct cache_entry *ce) |
| 144 | { |
| 145 | struct cache_entry *old = istate->cache[nr]; |
| 146 | |
| 147 | replace_index_entry_in_base(istate, old, ce); |
| 148 | remove_name_hash(istate, old); |
| 149 | discard_cache_entry(old); |
| 150 | ce->ce_flags &= ~CE_HASHED; |
| 151 | set_index_entry(istate, nr, ce); |
| 152 | ce->ce_flags |= CE_UPDATE_IN_BASE; |
| 153 | mark_fsmonitor_invalid(istate, ce); |
| 154 | istate->cache_changed |= CE_ENTRY_CHANGED; |
| 155 | } |
| 156 | |
| 157 | void rename_index_entry_at(struct index_state *istate, int nr, const char *new_name) |
| 158 | { |
no test coverage detected