Skip to content

Commit 8ff7c5a

Browse files
committed
Merge pull request #1827 from benpeart/fscache_refresh_index
Enable the filesystem cache (fscache) in refresh_index().
2 parents 58b8f18 + d15df4e commit 8ff7c5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

read-cache.c

+2
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15331533
typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
15341534
added_fmt = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
15351535
unmerged_fmt = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
1536+
enable_fscache(1);
15361537
/*
15371538
* Use the multi-threaded preload_index() to refresh most of the
15381539
* cache entries quickly then in the single threaded loop below,
@@ -1627,6 +1628,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
16271628
display_progress(progress, istate->cache_nr);
16281629
stop_progress(&progress);
16291630
trace_performance_leave("refresh index");
1631+
enable_fscache(0);
16301632
return has_errors;
16311633
}
16321634

0 commit comments

Comments
 (0)