mirror of
https://github.com/git/git.git
synced 2026-01-17 14:21:57 +00:00
Merge pull request #1827 from benpeart/fscache_refresh_index
Enable the filesystem cache (fscache) in refresh_index().
This commit is contained in:
@@ -1495,6 +1495,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
|
||||
typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
|
||||
added_fmt = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
|
||||
unmerged_fmt = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
|
||||
enable_fscache(1);
|
||||
/*
|
||||
* Use the multi-threaded preload_index() to refresh most of the
|
||||
* cache entries quickly then in the single threaded loop below,
|
||||
@@ -1572,6 +1573,7 @@ int refresh_index(struct index_state *istate, unsigned int flags,
|
||||
stop_progress(&progress);
|
||||
}
|
||||
trace_performance_leave("refresh index");
|
||||
enable_fscache(0);
|
||||
return has_errors;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user