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

Re: [PATCH] document git-repack interaction of pack.threads and pack.windowMemory

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 9, 2016, 18:27 UTC
Message-ID
<xmqqlh05ajbm.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<db25fccf-ed85-3974-143d-2c50b3037642@redhat.com>
Michael Stahl <mstahl@redhat.com> writes:
Show 16 quoted lines
> Signed-off-by: Michael Stahl <mstahl@redhat.com>
> ---
>  Documentation/git-pack-objects.txt | 2 +-
>  Documentation/git-repack.txt       | 6 +++++-
>  2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
> index 19cdcd0..0b655a5 100644
> --- a/Documentation/git-pack-objects.txt
> +++ b/Documentation/git-pack-objects.txt
> @@ -105,7 +105,7 @@ base-name::
>  	advantage of the large window for the smaller objects.  The
>  	size can be suffixed with "k", "m", or "g".
>  	`--window-memory=0` makes memory usage unlimited, which is the
> -	default.
> +	default, unless the config variable `pack.windowMemory` is set.

That does not go far enough as it does not say what happens when the variable is set (i.e. "the variable serves as the default in that case").

Perhaps "...makes memory usage unlimited. The default is taken from the `pack.windowMemory` configuration variable." would make it better, as it is described that its default is "unlimited".

Show 14 quoted lines
> diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt
> index c597523..300455b 100644
> --- a/Documentation/git-repack.txt
> +++ b/Documentation/git-repack.txt
> @@ -101,7 +101,11 @@ other objects in that pack they already have locally.
>  	advantage of the large window for the smaller objects.  The
>  	size can be suffixed with "k", "m", or "g".
>  	`--window-memory=0` makes memory usage unlimited, which is the
> -	default.
> +	default, unless the config variable `pack.windowMemory` is set.
> +	Note that the actual memory usage will be multiplied
> +	by the number of threads used by linkgit:git-pack-objects[1],
> +	which is lacking a corresponding git-repack flag but can be
> +	set via the config variable `pack.threads`.

I think the same comment applies to the first line. The next two lines are definite improvement, but I do not think the last two lines are necessary.

Previous: Michael StahlNext: Michael Stahl
Message 2 of 3 in “document git-repack interaction of pack.threads and pack.windowMemory”
  1. document git-repack interaction of pack.threads and pack.windowMemoryMichael Stahl, Aug 9, 2016
  2. Junio C HamanoAug 9, 2016
  3. Michael StahlAug 10, 2016

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.