From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jonathan Tan <jonathantanmy@google.com>, git@vger.kernel.org
Subject: Re: [PATCH] Doc: clarify that pack-objects makes packs, plural
Date: Wed, 23 Aug 2017 17:22:51 -0400 [thread overview]
Message-ID: <20170823212251.li5fs4kypeveydbm@sigill.intra.peff.net> (raw)
In-Reply-To: <xmqqbmn72x7a.fsf@gitster.mtv.corp.google.com>
On Tue, Aug 22, 2017 at 12:56:25PM -0700, Junio C Hamano wrote:
> - There should be an update to say max-pack-size is not something
> normal users would ever want.
Agreed.
> diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
> index 8973510a41..3aa6234501 100644
> --- a/Documentation/git-pack-objects.txt
> +++ b/Documentation/git-pack-objects.txt
> @@ -108,9 +108,13 @@ base-name::
> is taken from the `pack.windowMemory` configuration variable.
>
> --max-pack-size=<n>::
> - Maximum size of each output pack file. The size can be suffixed with
> + In unusual scenarios, you may not be able to create files
> + larger than certain size on your filesystem, and this option
> + can be used to tell the command to split the output packfile
> + into multiple independent packfiles and what the maximum
> + size of each packfile is. 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, which also
> + This option
> prevents the creation of a bitmap index.
> The default is unlimited, unless the config variable
> `pack.packSizeLimit` is set.
I wonder if it is worth mentioning the other downside: that the sum of
the split packfiles may be substantially larger than a single packfile
would be (due to lost delta opportunities between the split packs).
For the sneaker-net case, you are much better off generating a single
pack and then using "split" and "cat" to reconstruct it on the other end
Not that I think we should go into such detail in the manpage, but I
have to wonder if --max-pack-size has outlived its usefulness. The only
use case I can think of is a filesystem that cannot hold files larger
than N bytes.
-Peff
next prev parent reply other threads:[~2017-08-23 21:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-22 18:22 [PATCH] Doc: clarify that pack-objects makes packs, plural Jonathan Tan
2017-08-22 19:56 ` Junio C Hamano
2017-08-23 0:40 ` [PATCH v2] " Jonathan Tan
2017-08-23 21:22 ` Jeff King [this message]
2017-08-24 7:27 ` [PATCH] " Jacob Keller
2017-08-24 13:38 ` Jeff King
2017-08-24 19:09 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170823212251.li5fs4kypeveydbm@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jonathantanmy@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).