* This only updates the "non-critical" parts of the directory * cache, ie the parts that aren't tracked by GIT, and only used * to validate the cache. */
| 191 | * to validate the cache. |
| 192 | */ |
| 193 | void fill_stat_cache_info(struct index_state *istate, struct cache_entry *ce, struct stat *st) |
| 194 | { |
| 195 | fill_stat_data(&ce->ce_stat_data, st); |
| 196 | |
| 197 | if (assume_unchanged) |
| 198 | ce->ce_flags |= CE_VALID; |
| 199 | |
| 200 | if (S_ISREG(st->st_mode)) { |
| 201 | ce_mark_uptodate(ce); |
| 202 | mark_fsmonitor_valid(istate, ce); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | static unsigned int st_mode_from_ce(const struct cache_entry *ce) |
| 207 | { |
no test coverage detected