Skip to content

Commit 5fb6de0

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #1827 from benpeart/fscache_refresh_index
Enable the filesystem cache (fscache) in refresh_index().
2 parents 73d15b0 + 195d108 commit 5fb6de0

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
@@ -1534,6 +1534,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15341534
typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
15351535
added_fmt = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
15361536
unmerged_fmt = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
1537+
enable_fscache(1);
15371538
/*
15381539
* Use the multi-threaded preload_index() to refresh most of the
15391540
* cache entries quickly then in the single threaded loop below,
@@ -1611,6 +1612,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
16111612
stop_progress(&progress);
16121613
}
16131614
trace_performance_leave("refresh index");
1615+
enable_fscache(0);
16141616
return has_errors;
16151617
}
16161618

0 commit comments

Comments
 (0)