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