git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] builtin/repack.c: set a default factor for '--geometric'

From
Derrick Stolee <stolee@gmail.com>
Date
Apr 20, 2021, 12:39 UTC
Message-ID
<60af51b7-b2a3-8acf-f7a0-49a137daf2c6@gmail.com>
In-Reply-To
<1ecab817396fae6a1cbafde1ca8b3ebfd9ae4c11.1618883241.git.me@ttaylorr.com>
On 4/19/2021 9:47 PM, Taylor Blau wrote:
Show 6 quoted lines
> The '--geometric=<n>' argument specifies that each pack must contain at
> least 'n' times as many objects as the size of the next-largest pack.
> The factor 'n' is customizable, but setting it to '2' is a sane default.
> 
> Instead of making the factor a required argument, make the argument
> optional with a default value of '2'.
This flexibility is nice.
 
> To ensure that the option is setup correctly, modify the most complex
> test of t7703 to drop the explicit factor.
Good testing.
Show 9 quoted lines
> --g=<factor>::
> ---geometric=<factor>::
> +-g=[<factor>]::
> +--geometric[=<factor>]::
>  	Arrange resulting pack structure so that each successive pack
> -	contains at least `<factor>` times the number of objects as the
> -	next-largest pack.
> +	contains at least `<factor>` (`2` if unspecified) times the
> +	number of objects as the next-largest pack.

The parenthetical interrupts what `<factor>` means. Perhaps rearrange:

	Arrange resulting pack structure so that each successive pack
	contains at least `<factor>` times the number of objects as the
	next-largest pack. If `<factor>` is not specified, then `2` is
	used by default.
Rest of the diff looks good.

Thanks, -Stolee

Previous: Taylor BlauNext: Junio C Hamano
Message 2 of 6 in “builtin/repack.c: set a default factor for '--geometric'”
  1. builtin/repack.c: set a default factor for '--geometric'Taylor Blau, Apr 20, 2021
  2. Derrick StoleeApr 20, 2021
  3. Junio C HamanoApr 20, 2021
  4. Taylor BlauApr 20, 2021
  5. builtin/repack.c: set a default factor for '--geometric'Taylor Blau, Apr 20, 2021
  6. Andreas SchwabApr 20, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.