Skip to content

Commit

Permalink
fast-import: honor pack.indexversion and pack.packsizelimit config vars
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Feb 17, 2010
1 parent 89e0a3a commit 8c2ca8d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -2876,6 +2876,17 @@ static int git_pack_config(const char *k, const char *v, void *cb)
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;
Expand Down

0 comments on commit 8c2ca8d

Please sign in to comment.