From 7629245eadeca11b1aff90aa2d1e59ba679e2ef8 Mon Sep 17 00:00:00 2001 From: Ben Peart Date: Mon, 5 Nov 2018 08:38:32 -0500 Subject: [PATCH] fixup! add: use preload-index and fscache for performance At the end of the add command, disable and free the fscache so that we don't leak the memory and so that we can dump the fscache statistics. Signed-off-by: Ben Peart Signed-off-by: Johannes Schindelin --- builtin/add.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/add.c b/builtin/add.c index 0ccb303f1a..737c6b185f 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -622,6 +622,7 @@ finish: die(_("Unable to write new index file")); dir_clear(&dir); + enable_fscache(0); UNLEAK(pathspec); return exit_status; }