Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
fast-import: honor pack.indexversion and pack.packsizelimit config vars
author
Nicolas Pitre
<nico@fluxnic.net>
Wed, 17 Feb 2010 19:05:55 +0000
(14:05 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 17 Feb 2010 19:08:44 +0000
(11:08 -0800)
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
89e0a3a
)
diff --git
a/fast-import.c
b/fast-import.c
index d2f45b18d9793c7548b997a3c6e318789f84ba8d..7fc98620b2f712c56b0a20a0b1508c4233f80801 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-2876,6
+2876,17
@@
static int git_pack_config(const char *k, const char *v, void *cb)
pack_compression_seen = 1;
return 0;
}
pack_compression_seen = 1;
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")) {
long n = git_config_int(k, v);
big_file_threshold = 0 < n ? n : 0;
if (!strcmp(k, "core.bigfilethreshold")) {
long n = git_config_int(k, v);
big_file_threshold = 0 < n ? n : 0;