Skip to content

Commit ae656a0

Browse files
committed
Merge pull request git-for-windows#1827 from benpeart/fscache_refresh_index
Enable the filesystem cache (fscache) in refresh_index().
2 parents 8c41b46 + c674ba6 commit ae656a0

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
@@ -1496,6 +1496,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
14961496
typechange_fmt = (in_porcelain ? "T\t%s\n" : "%s needs update\n");
14971497
added_fmt = (in_porcelain ? "A\t%s\n" : "%s needs update\n");
14981498
unmerged_fmt = (in_porcelain ? "U\t%s\n" : "%s: needs merge\n");
1499+
enable_fscache(1);
14991500
/*
15001501
* Use the multi-threaded preload_index() to refresh most of the
15011502
* cache entries quickly then in the single threaded loop below,
@@ -1573,6 +1574,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15731574
stop_progress(&progress);
15741575
}
15751576
trace_performance_leave("refresh index");
1577+
enable_fscache(0);
15761578
return has_errors;
15771579
}
15781580

0 commit comments

Comments
 (0)