Skip to content

Commit 618e613

Browse files
tytsoJunio C Hamano
authored andcommitted
Increase pack.depth default to 50
Signed-off-by: "Theodore Ts'o" <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 842aaf9 commit 618e613

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ pack.window::
548548

549549
pack.depth::
550550
The maximum delta depth used by gitlink:git-pack-objects[1] when no
551-
maximum depth is given on the command line. Defaults to 10.
551+
maximum depth is given on the command line. Defaults to 50.
552552

553553
pull.octopus::
554554
The default merge strategy to use when pulling multiple branches

Documentation/git-pack-objects.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ base-name::
8383
it too deep affects the performance on the unpacker
8484
side, because delta data needs to be applied that many
8585
times to get to the necessary object.
86-
The default value for --window is 10 and --depth is 10.
86+
The default value for --window is 10 and --depth is 50.
8787

8888
--incremental::
8989
This flag causes an object already in a pack ignored

Documentation/git-repack.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ OPTIONS
6363
space. `--depth` limits the maximum delta depth; making it too deep
6464
affects the performance on the unpacker side, because delta data needs
6565
to be applied that many times to get to the necessary object.
66-
The default value for --window is 10 and --depth is 10.
66+
The default value for --window is 10 and --depth is 50.
6767

6868

6969
Configuration

builtin-pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static char tmpname[PATH_MAX];
6464
static unsigned char pack_file_sha1[20];
6565
static int progress = 1;
6666
static int window = 10;
67-
static int depth = 10;
67+
static int depth = 50;
6868
static int pack_to_stdout;
6969
static int num_preferred_base;
7070
static struct progress progress_state;

0 commit comments

Comments
 (0)