aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2017-06-08 14:34:36 +0900
committerJunio C Hamano <gitster@pobox.com>2017-06-12 09:50:33 -0700
commit4f2220e606a52e891915540523d5d03aaa2dbc8f (patch)
treee8a276d26549a7bc4c1155e70ac64cbbeacaabb7 /fast-import.c
parent41dd4330a1210003bd702ec4a9301ed68e60864d (diff)
downloadgit-4f2220e606a52e891915540523d5d03aaa2dbc8f.tar.gz
git-4f2220e606a52e891915540523d5d03aaa2dbc8f.tar.xz
fast-import: increase the default pack depth to 50
In 618e613a70, 10 years ago, the default for pack depth used for git-pack-objects and git-repack was changed from 10 to 50, while leaving fast-import's default to 10. There doesn't seem to be a reason besides oversight for the change not having happened in fast-import as well. Interestingly, fast-import uses pack.depth when it's set, and the git-config manual says the default for pack.depth is 50. While the git-fast-import manual does say the default depth is 10, the inconsistency is also confusing. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fast-import.c b/fast-import.c
index e69d21968..05c73858b 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -280,7 +280,7 @@ struct recent_command {
};
/* Configured limits on output */
-static unsigned long max_depth = 10;
+static unsigned long max_depth = 50;
static off_t max_packsize;
static int unpack_limit = 100;
static int force_update;