diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-12-06 12:03:38 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-18 19:11:34 -0700 |
commit | 1c192f3442414a6ce83f9a524806fc26a0861d2d (patch) | |
tree | b2d255c6bb98100964366c0ec4b5bdd874efb0ee /builtin-gc.c | |
parent | ba150a3fdce48e4b973db6e153e6b3ffb28a0cea (diff) | |
download | git-1c192f3442414a6ce83f9a524806fc26a0861d2d.tar.gz |
gc --aggressive: make it really aggressive
The default was not to change the window or depth at all. As suggested
by Jon Smirl, Linus Torvalds and others, default to
--window=250 --depth=250
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-gc.c')
-rw-r--r-- | builtin-gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-gc.c b/builtin-gc.c index 8d990ed493..fc556ed7f3 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -23,7 +23,7 @@ static const char * const builtin_gc_usage[] = { }; static int pack_refs = 1; -static int aggressive_window = -1; +static int aggressive_window = 250; static int gc_auto_threshold = 6700; static int gc_auto_pack_limit = 50; static const char *prune_expire = "2.weeks.ago"; @@ -200,6 +200,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix) if (aggressive) { append_option(argv_repack, "-f", MAX_ADD); + append_option(argv_repack, "--depth=250", MAX_ADD); if (aggressive_window > 0) { sprintf(buf, "--window=%d", aggressive_window); append_option(argv_repack, buf, MAX_ADD); |