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

Function fill_stat_cache_info

read-cache.c:193–204  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

191 * to validate the cache.
192 */
193void 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
206static unsigned int st_mode_from_ce(const struct cache_entry *ce)
207{

Callers 5

update_ce_after_writeFunction · 0.85
add_index_fileFunction · 0.85
add_to_indexFunction · 0.85
refresh_cache_entFunction · 0.85
add_one_pathFunction · 0.85

Calls 2

fill_stat_dataFunction · 0.85
mark_fsmonitor_validFunction · 0.85

Tested by

no test coverage detected