Thread (10 messages) flat view 10 messages, 5 authors, 2016-06-15

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

From: Jeff King <hidden>
Date: 2016-06-15 22:45:16

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help