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

Re: [PATCH 1/2] gc docs: change --keep-base-pack to --keep-largest-pack

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 23, 2020, 10:18 UTC
Message-ID
<87h7pgpea2.fsf@evledraar.gmail.com>
In-Reply-To
<xmqqtutisdfk.fsf@gitster.c.googlers.com>
On Sat, Nov 21 2020, Junio C Hamano wrote:
Show 10 quoted lines
> Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
>
>> The --keep-base-pack option never existed in git.git. It was the name
>> for the --keep-largest-pack option in earlier revisions of that series
>> before it landed as ae4e89e549 ("gc: add --keep-largest-pack option",
>> 2018-04-15).
>
> Is it a sign that this hasn't been used by or useful to our users
> that this documentation bug did not get noticed by anybody for the
> past 30 months, I wonder.

FWIW I used it in a major git deployment since before it landed on "master" as gc.bigPackThreshold, but not the CLI option.

I think a lot of these CLI options for gc/repack are relatively unused compared to the config, but it's still arguably useful to have them for one-off testing (although you could also just use "git -c ...").

Show 5 quoted lines
> "git gc -h" does report the option with correct name, which is the
> beauty of automation ;-)
>
> Thanks, both.  Will queue, together with [2/2] which also makes
> sense.
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 4 of 5 in “gc docs: git gc --keep-base-pack ?”
  1. Luc Van OostenryckAug 6, 2020
  2. 1/2 gc docs: change --keep-base-pack to --keep-largest-packÆvar Arnfjörð Bjarmason, Nov 20, 2020
  3. Junio C HamanoNov 21, 2020
  4. Ævar Arnfjörð BjarmasonNov 23, 2020
  5. 2/2 gc: rename keep_base_pack variable for --keep-largest-packÆvar Arnfjörð Bjarmason, Nov 20, 2020

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.