Skip to content

Commit 81f47e2

Browse files
author
Git for Windows Build Agent
committed
Merge pull request #1419 from atetubou/enable_fscache
checkout.c: enable fscache for checkout_entry
2 parents 79b694c + eea0bbf commit 81f47e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/checkout.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ static int checkout_paths(const struct checkout_opts *opts,
359359
state.istate = &the_index;
360360

361361
enable_delayed_checkout(&state);
362+
enable_fscache(1);
362363
for (pos = 0; pos < active_nr; pos++) {
363364
struct cache_entry *ce = active_cache[pos];
364365
if (ce->ce_flags & CE_MATCHED) {
@@ -373,6 +374,7 @@ static int checkout_paths(const struct checkout_opts *opts,
373374
pos = skip_same_name(ce, pos) - 1;
374375
}
375376
}
377+
enable_fscache(0);
376378
errs |= finish_delayed_checkout(&state);
377379

378380
if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))

0 commit comments

Comments
 (0)