Thread (3 messages) flat view 3 messages, 2 authors, 2021-06-12

Re: [suggestion] support non-negative float number in git-repack --max-pack-size

From: Jeff King <hidden>
Date: 2021-06-08 06:43:10

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.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help