summaryrefslogtreecommitdiff
path: root/builtin/update-index.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-20 18:32:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-11-20 18:32:10 (GMT)
commit10022a6d02f10afada7990f232d184a7ebe82b90 (patch)
treed976802bd99cda8d9c6c59142c7ff644e0db69e8 /builtin/update-index.c
parenta9bb4e55a3a552a705f8a6222e4523ed27bb7cc8 (diff)
parent7349afd20e3b0ce3da6f192f593390472acec9d3 (diff)
downloadgit-10022a6d02f10afada7990f232d184a7ebe82b90.zip
git-10022a6d02f10afada7990f232d184a7ebe82b90.tar.gz
git-10022a6d02f10afada7990f232d184a7ebe82b90.tar.bz2
Merge branch 'kb/preload-index-more'
Use preloadindex in more places, which has a nice speedup on systems with slow stat calls (and even on Linux). * kb/preload-index-more: update-index/diff-index: use core.preloadindex to improve performance
Diffstat (limited to 'builtin/update-index.c')
-rw-r--r--builtin/update-index.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c
index 74986bf..ada1dff 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -593,6 +593,7 @@ struct refresh_params {
static int refresh(struct refresh_params *o, unsigned int flag)
{
setup_work_tree();
+ read_cache_preload(NULL);
*o->has_errors |= refresh_cache(o->flags | flag);
return 0;
}