We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e12dee3 + 9a2ec4c commit cc0d2daCopy full SHA for cc0d2da
builtin/add.c
@@ -475,6 +475,10 @@ int cmd_add(int argc,
475
die_in_unpopulated_submodule(repo->index, prefix);
476
die_path_inside_submodule(repo->index, &pathspec);
477
478
+ enable_fscache(1);
479
+ /* We do not really re-read the index but update the up-to-date flags */
480
+ preload_index(repo->index, &pathspec, 0);
481
+
482
if (add_new_files) {
483
int baselen;
484
@@ -587,5 +591,6 @@ int cmd_add(int argc,
587
591
free(ps_matched);
588
592
dir_clear(&dir);
589
593
clear_pathspec(&pathspec);
594
+ enable_fscache(0);
590
595
return exit_status;
596
}
0 commit comments