Skip to content

Commit 291b5bd

Browse files
committed
fixup! add: use preload-index and fscache for performance
1 parent e643de4 commit 291b5bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/add.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ int cmd_add(int argc,
477477

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

482482
if (add_new_files) {
483483
int baselen;

0 commit comments

Comments
 (0)