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 2fa19b6 + abae2dd commit 9ef4f26Copy full SHA for 9ef4f26
builtin/add.c
@@ -476,6 +476,10 @@ int cmd_add(int argc,
476
die_in_unpopulated_submodule(repo->index, prefix);
477
die_path_inside_submodule(repo->index, &pathspec);
478
479
+ enable_fscache(1);
480
+ /* We do not really re-read the index but update the up-to-date flags */
481
+ preload_index(repo->index, &pathspec, 0);
482
+
483
if (add_new_files) {
484
int baselen;
485
@@ -588,5 +592,6 @@ int cmd_add(int argc,
588
592
free(ps_matched);
589
593
dir_clear(&dir);
590
594
clear_pathspec(&pathspec);
595
+ enable_fscache(0);
591
596
return exit_status;
597
}
0 commit comments