Skip to content

Commit

Permalink
fixup! add: use preload-index and fscache for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Sep 13, 2024
1 parent c9a2fa1 commit 561e7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ int cmd_add(int argc,

enable_fscache(0);
/* We do not really re-read the index but update the up-to-date flags */
preload_index(the_repository->index, &pathspec, 0);
preload_index(repo->index, &pathspec, 0);

if (add_new_files) {
int baselen;
Expand Down

0 comments on commit 561e7d3

Please sign in to comment.