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>
Mike Hommey committed
Jun 8, 2017 at 14:34 UTC
4f2220e606a52e891915540523d5d03aaa2dbc8f
2 files changed
+2
-2
Documentation/git-fast-import.txt
+1
-1
@@ -121,7 +121,7 @@ Performance and Compression Tuning
121
122
--depth=<n>::
123
Maximum delta depth, for blob and tree deltification.
124
- Default is 10.
124
+ Default is 50.
125
126
--export-pack-edges=<file>::
127
After creating a packfile, print a line of data to
fast-import.c
+1
-1
@@ -280,7 +280,7 @@ struct recent_command {
280
};
281
282
/* Configured limits on output */
283
-static unsigned long max_depth = 10;
283
+static unsigned long max_depth = 50;
284
static off_t max_packsize;
285
static int unpack_limit = 100;
286
static int force_update;