Skip to content

Commit 7601f64

Browse files
committed
Merge pull request #1827 from benpeart/fscache_refresh_index
Enable the filesystem cache (fscache) in refresh_index().
2 parents 1cdd7c4 + 999e987 commit 7601f64

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
@@ -1505,6 +1505,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15051505
typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
15061506
added_fmt = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
15071507
unmerged_fmt = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
1508+
enable_fscache(1);
15081509
/*
15091510
* Use the multi-threaded preload_index() to refresh most of the
15101511
* cache entries quickly then in the single threaded loop below,
@@ -1582,6 +1583,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15821583
stop_progress(&progress);
15831584
}
15841585
trace_performance_leave("refresh index");
1586+
enable_fscache(0);
15851587
return has_errors;
15861588
}
15871589

0 commit comments

Comments
 (0)