Skip to content

Commit 0952ca8

Browse files
committed
Merge branch 'jk/reduce-gc-aggressive-depth'
"git gc --aggressive" used to limit the delta-chain length to 250, which is way too deep for gaining additional space savings and is detrimental for runtime performance. The limit has been reduced to 50. * jk/reduce-gc-aggressive-depth: gc: default aggressive depth to 50
2 parents ae1ae60 + 07e7dbf commit 0952ca8

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
@@ -1366,7 +1366,7 @@ fsck.skipList::
13661366
gc.aggressiveDepth::
13671367
The depth parameter used in the delta compression
13681368
algorithm used by 'git gc --aggressive'. This defaults
1369-
to 250.
1369+
to 50.
13701370

13711371
gc.aggressiveWindow::
13721372
The window size parameter used in the delta compression

builtin/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static const char * const builtin_gc_usage[] = {
2828

2929
static int pack_refs = 1;
3030
static int prune_reflogs = 1;
31-
static int aggressive_depth = 250;
31+
static int aggressive_depth = 50;
3232
static int aggressive_window = 250;
3333
static int gc_auto_threshold = 6700;
3434
static int gc_auto_pack_limit = 50;

0 commit comments

Comments
 (0)