diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-11-13 22:37:25 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-11-13 22:37:26 +0900 |
| commit | 11aa560de964e800aabce446d600ab0fb4c90c20 (patch) | |
| tree | 3762ed62fab19d43f05030f44a9ec6edef978f25 /cache.h | |
| parent | Merge branch 'ag/rebase-i-in-c' (diff) | |
| parent | refresh_index: remove unnecessary calls to preload_index() (diff) | |
| download | git-11aa560de964e800aabce446d600ab0fb4c90c20.tar.gz git-11aa560de964e800aabce446d600ab0fb4c90c20.zip | |
Merge branch 'bp/refresh-index-using-preload'
The helper function to refresh the cached stat information in the
in-core index has learned to perform the lstat() part of the
operation in parallel on multi-core platforms.
* bp/refresh-index-using-preload:
refresh_index: remove unnecessary calls to preload_index()
speed up refresh_index() by utilizing preload_index()
Diffstat (limited to 'cache.h')
| -rw-r--r-- | cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -661,6 +661,9 @@ extern int daemonize(void); /* Initialize and use the cache information */ struct lock_file; extern int read_index(struct index_state *); +extern void preload_index(struct index_state *index, + const struct pathspec *pathspec, + unsigned int refresh_flags); extern int read_index_preload(struct index_state *, const struct pathspec *pathspec, unsigned int refresh_flags); |
