aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-04-05 10:44:11 -0700
committerJunio C Hamano <gitster@pobox.com>2011-04-05 20:25:49 -0700
commit15366280c27e922ace0ba7d33cb3504dc59d742e (patch)
treefe512d5fabebbb2257b818e9cd3a530eb163e599 /fast-import.c
parent7ed863a85a6ce2c4ac4476848310b8f917ab41f9 (diff)
downloadgit-15366280c27e922ace0ba7d33cb3504dc59d742e.tar.gz
git-15366280c27e922ace0ba7d33cb3504dc59d742e.tar.xz
Teach core.bigfilethreashold to pack-objects
The pack-objects command should take notice of the object file and refrain from attempting to delta large ones, to be consistent with the fast-import command. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fast-import.c b/fast-import.c
index 60f26fe47..1421dcd6e 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -284,7 +284,6 @@ struct recent_command
/* Configured limits on output */
static unsigned long max_depth = 10;
static off_t max_packsize;
-static uintmax_t big_file_threshold = 512 * 1024 * 1024;
static int force_update;
static int pack_compression_level = Z_DEFAULT_COMPRESSION;
static int pack_compression_seen;
@@ -3053,10 +3052,6 @@ static int git_pack_config(const char *k, const char *v, void *cb)
max_packsize = git_config_ulong(k, v);
return 0;
}
- if (!strcmp(k, "core.bigfilethreshold")) {
- long n = git_config_int(k, v);
- big_file_threshold = 0 < n ? n : 0;
- }
return git_default_config(k, v, cb);
}