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

Re: pack count on repo.or.cz [was "Medium term dreams"]

From
Jeff King <peff@peff.net>
Date
Sep 2, 2008, 01:14 UTC
Message-ID
<20080902011433.GA12682@coredump.intra.peff.net>
In-Reply-To
<20080902010410.GI10360@machine.or.cz>
On Tue, Sep 02, 2008 at 03:04:10AM +0200, Petr Baudis wrote:
> Unfortunately, I'm not aware how to decreate the packs count with
> current Git without losing _any_ objects. So yes, you could say that
> this is an artifact of the forking infrastructure - we just can't afford
> to lose objects.
Hmm, I thought that was the point of adding the "-A" flag to git-repack.

Though an even simpler solution, since you control all of the repos, is to just temporarily add references from the "parent" of the fork to every ref of every forked child. Then do the repack in the parent, which should then contain all of the objects for all of the children, delete the temporary references, and prune in the children (who should see most of their objects now in the parent).

The only downside I can think of is that anyone grabbing the parent's packs via dumb transport will grab a few unnecessary objects for the forks. But presumably they are not all that big, being forks (i.e., there will only be a few commits, and they will be delta'd anyway).

-Peff
Previous: Petr BaudisNext: Junio C Hamano
Message 4 of 12 in “Medium term dreams”
  1. Junio C HamanoSep 1, 2008
  2. pack count on repo.or.cz [was "Medium term dreams"]Jeff King, Sep 2, 2008
  3. Petr BaudisSep 2, 2008
  4. Jeff KingSep 2, 2008
  5. Junio C HamanoSep 2, 2008
  6. Jeff KingSep 2, 2008
  7. Petr BaudisSep 2, 2008
  8. Jeff KingSep 2, 2008
  9. Petr BaudisSep 2, 2008
  10. Johannes SixtSep 2, 2008
  11. Petr BaudisSep 3, 2008
  12. Mike HommeySep 4, 2008

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.