From: Petr Baudis <pasky@suse.cz>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: pack count on repo.or.cz [was "Medium term dreams"]
Date: Tue, 2 Sep 2008 13:15:31 +0200 [thread overview]
Message-ID: <20080902111531.GL10360@machine.or.cz> (raw)
In-Reply-To: <20080902011433.GA12682@coredump.intra.peff.net>
On Mon, Sep 01, 2008 at 09:14:33PM -0400, Jeff King wrote:
> 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.
Ok, I did
git repack -A -d
in repo.or.cz's git.git. What next? I have brand-new
-rw-rw-r-- 1 root root 1314056 2008-09-02 13:07 pack-d19ca8b0cfd0e3357c475a3e96ce55b9f7195667.idx
-rw-rw-r-- 1 root root 17344999 2008-09-02 13:07 pack-d19ca8b0cfd0e3357c475a3e96ce55b9f7195667.pack
but all the old packs too; git repack didn't delete anything,
git prune-packed seems to have no effect either.
> 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).
So not just refs but also alternates? What if someone accesses the
reposiory at that moment? I would also need to make the symlinks quite
densely to avoid refs/forkee/-induced loops.
I might as well just use a common repository for all the forks then. But
this does not scale at all for dumb transports, does it?
--
Petr "Pasky" Baudis
The next generation of interesting software will be done
on the Macintosh, not the IBM PC. -- Bill Gates
next prev parent reply other threads:[~2008-09-02 11:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-01 23:19 Medium term dreams Junio C Hamano
2008-09-02 0:00 ` pack count on repo.or.cz [was "Medium term dreams"] Jeff King
2008-09-02 1:04 ` Petr Baudis
2008-09-02 1:14 ` Jeff King
2008-09-02 1:47 ` pack count on repo.or.cz Junio C Hamano
2008-09-02 1:56 ` Jeff King
2008-09-02 11:15 ` Petr Baudis [this message]
2008-09-02 11:54 ` pack count on repo.or.cz [was "Medium term dreams"] Jeff King
2008-09-02 13:08 ` Petr Baudis
2008-09-02 13:49 ` Johannes Sixt
2008-09-03 10:08 ` Petr Baudis
2008-09-04 5:33 ` Medium term dreams Mike Hommey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080902111531.GL10360@machine.or.cz \
--to=pasky@suse.cz \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.