Re: [PATCHv4 05/10] pack-objects: Teach new option --max-commit-count, limiting #commits in pack
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 23, 2011, 23:17 UTC
- Message-ID
- <7v4o4lt3bh.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1306111923-16859-6-git-send-email-johan@herland.net>
Johan Herland <johan@herland.net> writes:
> The new --max-commit-count option behaves similarly to --max-object-count,
Hmm?
Do we have --max-object-count at this point in the series, or am I missing a patch?
Show 15 quoted lines
> diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt > index 20c8551..e43904e 100644 > --- a/Documentation/git-pack-objects.txt > +++ b/Documentation/git-pack-objects.txt > @@ -113,6 +113,14 @@ base-name:: > The default is unlimited, unless the config variable > `pack.packSizeLimit` is set. > > +--max-commit-count=<n>:: > + This option is only useful together with --stdout. > + Specifies the maximum number of commits allowed in the created > + pack. If the number of commits would exceed the given limit, > + pack-objects will fail with an error message. > + The number can be suffixed with "k", "m", or "g". > + The default is unlimited.
It feels a tad funny to count number of commits in increments of 2^10, but that's Ok ;-).
The patch itself looks fine. Thanks.