author | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Feb 2010 19:10:44 +0000 (11:10 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Feb 2010 23:12:17 +0000 (15:12 -0800) | ||
commit | 4d0cc2243778b38c3759c6a08f4f1ed64155a070 | |
tree | a9f28cfa907d1b0a19c0661ef4562dc4b5036418 | tree | snapshot |
parent | 9f17688d93c18bdd0532d2733710dc4d23921282 | commit | diff |
fast-import: count --max-pack-size in bytes
Similar in spirit to 07cf0f2 (make --max-pack-size argument to 'git
pack-object' count in bytes, 2010-02-03) which made the option by the same
name to pack-objects, this counts the pack size limit in bytes.
In order not to cause havoc with people used to the previous megabyte
scale an integer smaller than 8192 is interpreted in megabytes but the
user gets a warning. Also a minimum size of 1 MiB is enforced to avoid an
explosion of pack files.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Similar in spirit to 07cf0f2 (make --max-pack-size argument to 'git
pack-object' count in bytes, 2010-02-03) which made the option by the same
name to pack-objects, this counts the pack size limit in bytes.
In order not to cause havoc with people used to the previous megabyte
scale an integer smaller than 8192 is interpreted in megabytes but the
user gets a warning. Also a minimum size of 1 MiB is enforced to avoid an
explosion of pack files.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Documentation/RelNotes-1.7.0.txt | diff | blob | history | |
Documentation/git-fast-import.txt | diff | blob | history | |
fast-import.c | diff | blob | history |