summaryrefslogtreecommitdiff
path: root/Documentation/git-repack.txt
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2010-02-04 03:48:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-02-04 04:39:56 (GMT)
commit07cf0f2407709e3764ea989696b513ec32613504 (patch)
tree3eab6f3be18ea1e04abbf8c34e706f021b78c28f /Documentation/git-repack.txt
parenta2430dde8ceaaaabf05937438249397b883ca77a (diff)
downloadgit-07cf0f2407709e3764ea989696b513ec32613504.zip
git-07cf0f2407709e3764ea989696b513ec32613504.tar.gz
git-07cf0f2407709e3764ea989696b513ec32613504.tar.bz2
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>
Diffstat (limited to 'Documentation/git-repack.txt')
-rw-r--r--Documentation/git-repack.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt
index 538895c..e2f2fa2 100644
--- a/Documentation/git-repack.txt
+++ b/Documentation/git-repack.txt
@@ -98,10 +98,12 @@ other objects in that pack they already have locally.
`--window-memory=0` makes memory usage unlimited, which is the
default.
---max-pack-size=<n>::
- Maximum size of each output packfile, expressed in MiB.
+--max-pack-size=[N]::
+ Maximum size of each output pack file. The size can be suffixed with
+ "k", "m", or "g". The minimum size allowed is limited to 1 MiB.
If specified, multiple packfiles may be created.
- The default is unlimited.
+ The default is unlimited, unless the config variable
+ `pack.packSizeLimit` is set.
Configuration