author | Nicolas Pitre <nico@fluxnic.net> | |
Thu, 4 Feb 2010 03:48:28 +0000 (22:48 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Feb 2010 04:39:56 +0000 (20:39 -0800) | ||
commit | 07cf0f2407709e3764ea989696b513ec32613504 | |
tree | 3eab6f3be18ea1e04abbf8c34e706f021b78c28f | tree | snapshot |
parent | a2430dde8ceaaaabf05937438249397b883ca77a | commit | diff |
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>
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>