builtin-prune: memory diet.
Somehow we forgot to turn save_commit_buffer off while walking the reachable objects. Releasing the memory for commit object data that we do not use matters for large projects (for example, about 90MB is saved while traversing linux-2.6 history). Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 5, 2007 at 13:31 UTC
16157b8074926348a9ee191ce6b50c8e1656161c
1 file changed
+2
builtin-prune.c
+2
@@ -253,6 +253,8 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
253
usage(prune_usage);
254
}
255
256
+ save_commit_buffer = 0;
257
+
258
/*
259
* Set up revision parsing, and mark us as being interested
260
* in all object types, not just commits.