提交 8c2ca8dd 编写于 作者: N Nicolas Pitre 提交者: Junio C Hamano

fast-import: honor pack.indexversion and pack.packsizelimit config vars

Signed-off-by: NNicolas Pitre <nico@fluxnic.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 89e0a3a1
...@@ -2876,6 +2876,17 @@ static int git_pack_config(const char *k, const char *v, void *cb) ...@@ -2876,6 +2876,17 @@ static int git_pack_config(const char *k, const char *v, void *cb)
pack_compression_seen = 1; pack_compression_seen = 1;
return 0; return 0;
} }
if (!strcmp(k, "pack.indexversion")) {
pack_idx_default_version = git_config_int(k, v);
if (pack_idx_default_version > 2)
die("bad pack.indexversion=%"PRIu32,
pack_idx_default_version);
return 0;
}
if (!strcmp(k, "pack.packsizelimit")) {
max_packsize = git_config_ulong(k, v);
return 0;
}
if (!strcmp(k, "core.bigfilethreshold")) { if (!strcmp(k, "core.bigfilethreshold")) {
long n = git_config_int(k, v); long n = git_config_int(k, v);
big_file_threshold = 0 < n ? n : 0; big_file_threshold = 0 < n ? n : 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册