Skip to content

Commit 6e8555c

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 1419a87 + ee31a14 commit 6e8555c

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
@@ -1502,6 +1502,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15021502
typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
15031503
added_fmt = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
15041504
unmerged_fmt = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
1505+
enable_fscache(1);
15051506
/*
15061507
* Use the multi-threaded preload_index() to refresh most of the
15071508
* cache entries quickly then in the single threaded loop below,
@@ -1579,6 +1580,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
15791580
stop_progress(&progress);
15801581
}
15811582
trace_performance_leave("refresh index");
1583+
enable_fscache(0);
15821584
return has_errors;
15831585
}
15841586

0 commit comments

Comments
 (0)