Skip to content
Permalink
Browse files

Merge pull request #1827 from benpeart/fscache_refresh_index

Enable the filesystem cache (fscache) in refresh_index().
  • Loading branch information...
dscho committed Sep 27, 2018
2 parents a5565b4 + f58e6e1 commit ba593a7c31fc69c5bdfc44f383035a2e57372ba8
Showing with 2 additions and 0 deletions.
  1. +2 −0 read-cache.c
@@ -1483,6 +1483,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
typechange_fmt = (in_porcelain ? "T\t%s\n" : "%s needs update\n");
added_fmt = (in_porcelain ? "A\t%s\n" : "%s needs update\n");
unmerged_fmt = (in_porcelain ? "U\t%s\n" : "%s: needs merge\n");
enable_fscache(1);
for (i = 0; i < istate->cache_nr; i++) {
struct cache_entry *ce, *new_entry;
int cache_errno = 0;
@@ -1547,6 +1548,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,

replace_index_entry(istate, i, new_entry);
}
enable_fscache(0);
trace_performance_since(start, "refresh index");
return has_errors;
}

0 comments on commit ba593a7

Please sign in to comment.
You can’t perform that action at this time.