Skip to content

Commit 8c2ca8d

Browse files
npitregitster
authored andcommitted
fast-import: honor pack.indexversion and pack.packsizelimit config vars
Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 89e0a3a commit 8c2ca8d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

fast-import.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,6 +2876,17 @@ static int git_pack_config(const char *k, const char *v, void *cb)
28762876
pack_compression_seen = 1;
28772877
return 0;
28782878
}
2879+
if (!strcmp(k, "pack.indexversion")) {
2880+
pack_idx_default_version = git_config_int(k, v);
2881+
if (pack_idx_default_version > 2)
2882+
die("bad pack.indexversion=%"PRIu32,
2883+
pack_idx_default_version);
2884+
return 0;
2885+
}
2886+
if (!strcmp(k, "pack.packsizelimit")) {
2887+
max_packsize = git_config_ulong(k, v);
2888+
return 0;
2889+
}
28792890
if (!strcmp(k, "core.bigfilethreshold")) {
28802891
long n = git_config_int(k, v);
28812892
big_file_threshold = 0 < n ? n : 0;

0 commit comments

Comments
 (0)