diff options
author | Junio C Hamano <junkio@cox.net> | 2007-01-05 13:31:43 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-05 13:31:43 -0800 |
commit | 16157b8074926348a9ee191ce6b50c8e1656161c (patch) | |
tree | 6c556b2e1a480611b57b60360a28356faa78567f /builtin-prune.c | |
parent | 244a70e608204a515c214a11c43f3ecf7642533a (diff) | |
download | git-16157b8074926348a9ee191ce6b50c8e1656161c.tar.gz git-16157b8074926348a9ee191ce6b50c8e1656161c.tar.xz |
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>
Diffstat (limited to 'builtin-prune.c')
-rw-r--r-- | builtin-prune.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-prune.c b/builtin-prune.c index 00a53b364..b469c43bc 100644 --- a/builtin-prune.c +++ b/builtin-prune.c @@ -253,6 +253,8 @@ int cmd_prune(int argc, const char **argv, const char *prefix) usage(prune_usage); } + save_commit_buffer = 0; + /* * Set up revision parsing, and mark us as being interested * in all object types, not just commits. |