summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc96bdb)
raw | patch | inline | side by side (parent: dc96bdb)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 23 Mar 2008 07:04:48 +0000 (00:04 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 23 Mar 2008 07:11:31 +0000 (00:11 -0700) |
Recent discussion on the list, with the improvement f7c22cc (always start
looking up objects in the last used pack first, 2007-05-30) brought in,
reached the concensus that the current default 20 is too low.
Reference: http://thread.gmane.org/gmane.comp.version-control.git/77586
Signed-off-by: Junio C Hamano <gitster@pobox.com>
looking up objects in the last used pack first, 2007-05-30) brought in,
reached the concensus that the current default 20 is too low.
Reference: http://thread.gmane.org/gmane.comp.version-control.git/77586
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | patch | blob | history | |
builtin-gc.c | patch | blob | history |
index 0865f4e01a7d37c102dced01120798b79af4f4b1..3017d640cff918e33544272cb2b9f7b9cfd5db4c 100644 (file)
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
When there are more than this many packs that are not
marked with `*.keep` file in the repository, `git gc
--auto` consolidates them into one larger pack. The
- default value is 20. Setting this to 0 disables it.
+ default value is 50. Setting this to 0 disables it.
gc.packrefs::
`git gc` does not run `git pack-refs` in a bare repository by
diff --git a/builtin-gc.c b/builtin-gc.c
index 509bb9c6b33760c7a6ef84b759ae79f358fdeb83..8cef36f6a4445b163b299f282785f66af9662cb8 100644 (file)
--- a/builtin-gc.c
+++ b/builtin-gc.c
static int pack_refs = 1;
static int aggressive_window = -1;
static int gc_auto_threshold = 6700;
-static int gc_auto_pack_limit = 20;
+static int gc_auto_pack_limit = 50;
static char *prune_expire = "2.weeks.ago";
#define MAX_ADD 10