Skip to content

Commit 1020c6e

Browse files
committed
Merge pull request #1827 from benpeart/fscache_refresh_index
Enable the filesystem cache (fscache) in refresh_index().
2 parents 18c6519 + 922b6b4 commit 1020c6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

read-cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15301530
typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
15311531
added_fmt = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
15321532
unmerged_fmt = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
1533+
enable_fscache(1);
15331534
/*
15341535
* Use the multi-threaded preload_index() to refresh most of the
15351536
* cache entries quickly then in the single threaded loop below,
@@ -1607,6 +1608,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
16071608
stop_progress(&progress);
16081609
}
16091610
trace_performance_leave("refresh index");
1611+
enable_fscache(0);
16101612
return has_errors;
16111613
}
16121614

0 commit comments

Comments
 (0)