Skip to content

Commit 9706397

Browse files
committed
gc --auto: raise default auto pack limit from 20 to 50
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>
1 parent dc96bdb commit 9706397

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ gc.autopacklimit::
582582
When there are more than this many packs that are not
583583
marked with `*.keep` file in the repository, `git gc
584584
--auto` consolidates them into one larger pack. The
585-
default value is 20. Setting this to 0 disables it.
585+
default value is 50. Setting this to 0 disables it.
586586

587587
gc.packrefs::
588588
`git gc` does not run `git pack-refs` in a bare repository by

builtin-gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static const char * const builtin_gc_usage[] = {
2525
static int pack_refs = 1;
2626
static int aggressive_window = -1;
2727
static int gc_auto_threshold = 6700;
28-
static int gc_auto_pack_limit = 20;
28+
static int gc_auto_pack_limit = 50;
2929
static char *prune_expire = "2.weeks.ago";
3030

3131
#define MAX_ADD 10

0 commit comments

Comments
 (0)