summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ba150a3)
raw | patch | inline | side by side (parent: ba150a3)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 6 Dec 2007 12:03:38 +0000 (12:03 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 19 Mar 2009 02:11:34 +0000 (19:11 -0700) |
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>
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>
builtin-gc.c | patch | blob | history |
diff --git a/builtin-gc.c b/builtin-gc.c
index 8d990ed4935804591a17c864e280c0c9b4b7597f..fc556ed7f3fb68734fd783e5b38e6b050bed9c5b 100644 (file)
--- a/builtin-gc.c
+++ b/builtin-gc.c
};
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";
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);