| 268 | } |
| 269 | |
| 270 | void update_ce_after_write(const struct checkout *state, struct cache_entry *ce, |
| 271 | struct stat *st) |
| 272 | { |
| 273 | if (state->refresh_cache) { |
| 274 | assert(state->istate); |
| 275 | fill_stat_cache_info(state->istate, ce, st); |
| 276 | ce->ce_flags |= CE_UPDATE_IN_BASE; |
| 277 | mark_fsmonitor_invalid(state->istate, ce); |
| 278 | state->istate->cache_changed |= CE_ENTRY_CHANGED; |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | /* Note: ca is used (and required) iff the entry refers to a regular file. */ |
| 283 | static int write_entry(struct cache_entry *ce, char *path, struct conv_attrs *ca, |
no test coverage detected