From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: walt <wa1ter@myrealbox.com>
Cc: git@vger.kernel.org
Subject: Re: Question about git-prune
Date: Sat, 30 Jun 2007 21:18:01 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0706302115290.4438@racer.site> (raw)
In-Reply-To: <f66d3l$sa6$1@sea.gmane.org>
Hi,
On Sat, 30 Jun 2007, walt wrote:
> Johannes Schindelin wrote:
> >
> > On Sat, 30 Jun 2007, walt wrote:
> ...
> > > $git-prune
> > > $git-fsck
> > > dangling tree c642c018aa55d39fff061183f58062de9d8375ac
> > > dangling commit e1341abc3759950e891822088cb0163b71b316b3
> > > dangling commit 9f38e1ef7e7992ca490b9b419f52fb4d11efb0e4
> > > dangling commit b82871b3c32faa8a317007f343fdf2d0ddc9954e
> >
> > Probably the objects were packed.
>
> I also tried git-prune-packed, which also did nothing AFAICT.
git-prune-packed prunes objects which are loose _and_ packed.
> > I do not understand why you use git-prune directly, to begin with. Why
> > not use git-gc and be done with it?
>
> It didn't exist when I started using git. I normally don't use
> git-prune either, but in this case I was just scanning for problems
> after switching from cg-update to git-pull.
Fair enough.
> git-gc did get rid of all the danglers even though git-prune didn't.
> I'll do some investigating to find out why -- that should get me more up
> to date with recent changes.
The thing you needed was actually git-repack (which is called with every
necessary option you need from git-gc).
Basically, your objects were dangling _and_ packed. Thus you had to repack
in order to get rid of them, but keep the others.
Ciao,
Dscho
prev parent reply other threads:[~2007-06-30 20:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-30 16:29 Question about git-prune walt
2007-06-30 18:02 ` Johannes Schindelin
2007-06-30 20:06 ` walt
2007-06-30 20:12 ` Junio C Hamano
2007-06-30 20:18 ` Johannes Schindelin [this message]
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=Pine.LNX.4.64.0706302115290.4438@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=wa1ter@myrealbox.com \
/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).