Skip to content

Commit c7e234f

Browse files
committed
Merge branch 'jh/preload-index-skip-skip'
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
2 parents 466be3e + e596acc commit c7e234f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

preload-index.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ static void *preload_thread(void *_data)
5353
continue;
5454
if (ce_uptodate(ce))
5555
continue;
56+
if (ce_skip_worktree(ce))
57+
continue;
5658
if (!ce_path_match(ce, &p->pathspec, NULL))
5759
continue;
5860
if (threaded_has_symlink_leading_path(&cache, ce->name, ce_namelen(ce)))

0 commit comments

Comments
 (0)