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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux