Skip to content

Commit

Permalink
Merge pull request git-for-windows#955 from jeffhostetler/jeffhostetl…
Browse files Browse the repository at this point in the history
…er/preload_index_perf

preload-index: avoid lstat for skip-worktree items
  • Loading branch information
dscho committed Mar 20, 2017
2 parents 0bd4797 + f3020c4 commit 6823813
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 6823813

Please sign in to comment.