Skip to content

Commit

Permalink
Merge pull request #1419 from atetubou/enable_fscache
Browse files Browse the repository at this point in the history
checkout.c: enable fscache for checkout_entry
  • Loading branch information
dscho committed Jan 17, 2018
2 parents 98117e3 + 397c27b commit 89230f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ static int checkout_paths(const struct checkout_opts *opts,
state.istate = &the_index;

enable_delayed_checkout(&state);
enable_fscache(1);
for (pos = 0; pos < active_nr; pos++) {
struct cache_entry *ce = active_cache[pos];
if (ce->ce_flags & CE_MATCHED) {
Expand All @@ -373,6 +374,7 @@ static int checkout_paths(const struct checkout_opts *opts,
pos = skip_same_name(ce, pos) - 1;
}
}
enable_fscache(0);
errs |= finish_delayed_checkout(&state);

if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
Expand Down

0 comments on commit 89230f4

Please sign in to comment.