Re: [PATCHv4 05/10] pack-objects: Teach new option --max-commit-count, limiting #commits in pack

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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.

Re: [PATCHv4 05/10] pack-objects: Teach new option --max-commit-count, limiting #commits in pack

From: Johan Herland <hidden>
Date: 2016-06-15 22:51:18

On Tuesday 24 May 2011, Junio C Hamano wrote:
Johan Herland [off-list ref] writes:
quoted
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?
No, I dropped --max-object-count. Will update this commit message in the 
next iteration.


...Johan


-- 
Johan Herland, [off-list ref]
www.herland.net
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help