git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Bagas Sanjaya <bagasdotme@gmail.com>, Git Users <git@vger.kernel.org>
Subject: Re: [suggestion] support non-negative float number in git-repack --max-pack-size
Date: Tue, 08 Jun 2021 16:04:23 +0900	[thread overview]
Message-ID: <xmqqfsxsq1l4.fsf@gitster.g> (raw)
In-Reply-To: <YL8RfGijMY95miHI@coredump.intra.peff.net> (Jeff King's message of "Tue, 8 Jun 2021 02:43:08 -0400")

Jeff King <peff@peff.net> writes:

> On Mon, Jun 07, 2021 at 01:42:47PM +0700, Bagas Sanjaya wrote:
>
>> I would like to create packfiles with charm-numbered size (that is for
>> example use 49.99M instead of 50M) with git-repack:
>> 
>> $ git repack --max-pack-size=49.99M -a -d
>
> The parser for numbers with units is shared by many options and config
> variables. In general, I'm not really opposed to allowing floating point
> values which get rounded to the nearest byte for any of them. So no
> objection for the general feature if somebody wants to implement it.
>
> But I would note that --max-pack-size is almost never a good idea in
> general. I don't know what you think it's accomplishing, but it is
> probably making your repository larger than it needs to be, as well as
> less performant.

Perhaps a doc update is in order?  It might have been cute and
superficially useful to be able to cut packfiles in 650M chunks to
fit on a CD-ROM, but I suspect that it would be more useful to feed
a single large file to a generic multi-volume archive tool and let
it split it to fit the physical volume the tool deals with.

  reply	other threads:[~2021-06-08  7:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07  6:42 [suggestion] support non-negative float number in git-repack --max-pack-size Bagas Sanjaya
2021-06-08  6:43 ` Jeff King
2021-06-08  7:04   ` Junio C Hamano [this message]
2021-06-08  7:24     ` [PATCH] doc: warn people against --max-pack-size Jeff King
2021-06-17 17:02       ` Philip Oakley
2021-06-18 13:26         ` Jeff King
2021-06-18 15:15           ` Philip Oakley
2021-06-18 15:18             ` Jeff King
2021-06-12  1:20 ` [suggestion] support non-negative float number in git-repack --max-pack-size Bagas Sanjaya

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqfsxsq1l4.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=bagasdotme@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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.
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 NNTP newsgroup(s).