Skip to content

Commit

Permalink
Merge pull request #955 from jeffhostetler/jeffhostetler/preload_inde…
Browse files Browse the repository at this point in the history
…x_perf

preload-index: avoid lstat for skip-worktree items
  • Loading branch information
dscho committed Apr 12, 2017
2 parents d6f8957 + 7f49d22 commit 3abe6b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions preload-index.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 3abe6b1

Please sign in to comment.