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

Re: [PATCH] repack: respect --keep-pack with geometric repack

From
Taylor Blau <me@ttaylorr.com>
Date
May 20, 2022, 22:20 UTC
Message-ID
<YogUP+K8BL67WOPM@nand.local>
In-Reply-To
<xmqqee0ng8fj.fsf@gitster.g>
On Fri, May 20, 2022 at 03:12:32PM -0700, Junio C Hamano wrote:
Show 15 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
> >>> +			/*
> >>> +			 * The pack may be kept via the --keep-pack option;
> >>> +			 * check 'existing_kept_packs' to determine whether to
> >>> +			 * ignore it.
> >>> +			 */
> >
> > OK.  So there are two classes of packs we want to exclude from the
> > geometry repacking.  Those that already have .pack_keep bit set, and
> > those that are _are_ newly making into kept packs that do not yet
> > have .pack_keep bit set.  Makes sense.
>
> And with another topic in-flight combined, we have the third class
> that we would want to exclude here, i.e. the ones that are "cruft".
Indeed. tb/cruft-packs handles this by:
    if (p->is_cruft)
      continue;

since we would never want to roll up the objects in a cruft pack during geometric repacking.

There is likely a small conflict you had to resolve, but the resolution on 'seen' looks as-expected to me.

Thanks, Taylor

Previous: Junio C HamanoNext: Taylor Blau
Message 7 of 8 in “repack: respect --keep-pack with geometric repack”
  1. repack: respect --keep-pack with geometric repackVictoria Dye via GitGitGadget, May 20, 2022
  2. Taylor BlauMay 20, 2022
  3. Victoria DyeMay 20, 2022
  4. Taylor BlauMay 20, 2022
  5. Junio C HamanoMay 20, 2022
  6. Junio C HamanoMay 20, 2022
  7. Taylor BlauMay 20, 2022
  8. Taylor BlauMay 20, 2022

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.