Re: [PATCHv4 05/10] pack-objects: Teach new option --max-commit-count, limiting #commits in pack
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:18
Johan Herland [off-list ref] 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?
quoted hunk
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.