Skip to content

Commit 436aee8

Browse files
committed
Merge branch 'jeffhostetler/jeffhostetler/add_preload_fscache'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 2a862b3 + d00ca74 commit 436aee8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin/add.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ int cmd_add(int argc, const char **argv, const char *prefix)
461461
die_in_unpopulated_submodule(&the_index, prefix);
462462
die_path_inside_submodule(&the_index, &pathspec);
463463

464+
enable_fscache(1);
465+
/* We do not really re-read the index but update the up-to-date flags */
466+
preload_index(&the_index, &pathspec, 0);
467+
464468
if (add_new_files) {
465469
int baselen;
466470

0 commit comments

Comments
 (0)