make --max-pack-size argument to 'git pack-object' count in bytes
commit07cf0f2407709e3764ea989696b513ec32613504
authorNicolas Pitre <nico@fluxnic.net>
Thu, 4 Feb 2010 03:48:28 +0000 (3 22:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Feb 2010 04:39:56 +0000 (3 20:39 -0800)
tree3eab6f3be18ea1e04abbf8c34e706f021b78c28f
parenta2430dde8ceaaaabf05937438249397b883ca77a
make --max-pack-size argument to 'git pack-object' count in bytes

The value passed to --max-pack-size used to count in MiB which was
inconsistent with the corresponding configuration variable as well as
other command arguments which are defined to count in bytes with an
optional unit suffix.  This brings --max-pack-size in line with the
rest of Git.

Also, in order not to cause havoc with people used to the previous
megabyte scale, and because this is a sane thing to do anyway, a
minimum size of 1 MiB is enforced to avoid an explosion of pack files.

Adjust and extend test suite accordingly.

Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/RelNotes-1.7.0.txt
Documentation/config.txt
Documentation/git-pack-objects.txt
Documentation/git-repack.txt
builtin-pack-objects.c
t/t5300-pack-object.sh