mirror of
https://github.com/git/git.git
synced 2026-01-21 16:06:04 +00:00
Merge pull request #1419 from atetubou/enable_fscache
checkout.c: enable fscache for checkout_entry
This commit is contained in:
@@ -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) {
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user