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

Re: [RFC PATCH] multi-pack-index: allow operating without pack files

From
Johannes Berg <johannes@sipsolutions.net>
Date
Aug 23, 2021, 08:21 UTC
Message-ID
<dc146642f6aa9ac49d02cca47779071258e7541e.camel@sipsolutions.net>
In-Reply-To
<3649958.14eQuSAvaI@mfick-lnx>
On Sun, 2021-08-22 at 19:11 -0600, Martin Fick wrote:
Show 12 quoted lines
> On Sunday, August 22, 2021 8:34:43 PM MDT Derrick Stolee wrote:
> > On 8/20/2021 3:55 PM, Johannes Berg wrote:
> > > Technically, multi-pack-index doesn't need pack files to exist,
> > > but add_packed_git() today checks whether it exists or not.
> > 
> > Having a multi-pack-index is supposed to indicate that we have
> > these objects in the objects/pack directory within the specified
> > pack-files.
> 
> Hmm, isn't it a normal supported use case for repacking to potentially delete 
> packfiles which are in the MIDX (I'm specifically thinking about when someone 
> runs git gc with an older git version which knows nothing about MIDX files)?

Yeah, the multi-pack-index contains all the pack names that are there (and then which one the object is in), and when git tries to use it, then it doesn't really seem to have any issues?

You can "git repack -a -d" with an old version, or save the multi-pack- index temporarily elsewhere and copy it back after repack, and things work just fine, except of course "git multi-pack-index verify" will complain loudly.

johannes
Previous: Martin FickNext: Taylor Blau
Message 4 of 7 in “multi-pack-index: allow operating without pack files”
  1. multi-pack-index: allow operating without pack filesJohannes Berg, Aug 20, 2021
  2. Derrick StoleeAug 23, 2021
  3. Martin FickAug 23, 2021
  4. Johannes BergAug 23, 2021
  5. Taylor BlauAug 23, 2021
  6. Johannes BergAug 23, 2021
  7. Johannes BergAug 23, 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.