X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-gc.c;h=fc556ed7f3fb68734fd783e5b38e6b050bed9c5b;hb=f92f2038a5192ac5fc1bb4f38c49906aa45b3f1e;hp=8d990ed4935804591a17c864e280c0c9b4b7597f;hpb=25487f8e2ae266936df0f807ae79dca41606e404;p=git.git diff --git a/builtin-gc.c b/builtin-gc.c index 8d990ed49..fc556ed7f 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);