From: Junio C Hamano <gitster@pobox.com>
To: Petr Baudis <pasky@ucw.cz>
Cc: git@vger.kernel.org
Subject: Re: Removing redundant packs
Date: Sat, 08 Dec 2007 13:37:44 -0800 [thread overview]
Message-ID: <7vsl2cvpef.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20071208125050.GA17478@machine.or.cz> (Petr Baudis's message of "Sat, 8 Dec 2007 13:50:50 +0100")
Petr Baudis <pasky@ucw.cz> writes:
> At the same time, I have to be careful not to prune all unreferenced
> objects since they can be referenced in forks.
How about...
(1) In each repository, run "repack -a -d". That would ensure that
everybody has the necessary objects that they themselves need. By
doing this for a repository that borrows from another makes sure
pruning the latter would not break the former, so you start from
leaves and move on to the repositories they borrow from.
(2) In each repository, run "repack -a -l -d". By doing this for a
repository that borrows from another repacks the former without
objects it borrows from the latter, so the former repository will
retain what it needs but will borrow what are common from the
latter, so you start from the repository that does not borrow from
anybody else, and move on to the repositories that borrow from the
one you already run this step.
next prev parent reply other threads:[~2007-12-08 21:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 12:50 Removing redundant packs Petr Baudis
2007-12-08 21:37 ` Junio C Hamano [this message]
2007-12-08 23:44 ` Jeff King
2007-12-08 23:50 ` Jeff King
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=7vsl2cvpef.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).