Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jh/preload-index-skip-skip'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 27 Feb 2017 21:57:15 +0000
(13:57 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 27 Feb 2017 21:57:15 +0000
(13:57 -0800)
The preload-index code has been taught not to bother with the index
entries that are paths that are not checked out by "sparse checkout".
* jh/preload-index-skip-skip:
preload-index: avoid lstat for skip-worktree items
preload-index.c
patch
|
blob
|
history
raw
(from parent 1:
466be3e
)
diff --git
a/preload-index.c
b/preload-index.c
index c1fe3a3ef9cba0c155d02475e24315784bd27ae4..70a4c808783bab92b4b6319e3dbd8e16641b1918 100644
(file)
--- a/
preload-index.c
+++ b/
preload-index.c
@@
-53,6
+53,8
@@
static void *preload_thread(void *_data)
continue;
if (ce_uptodate(ce))
continue;
+ if (ce_skip_worktree(ce))
+ continue;
if (!ce_path_match(ce, &p->pathspec, NULL))
continue;
if (threaded_has_symlink_leading_path(&cache, ce->name, ce_namelen(ce)))