This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: git is live
- From: Samuel Bronson <naesten at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 10 Jan 2014 02:55:36 +0000 (UTC)
- Subject: Re: git is live
- Authentication-results: sourceware.org; auth=none
- References: <877gd5iyaz dot fsf at fleche dot redhat dot com> <CAHACq4o_Lgy7G5c9rRLB1tijmEngrOn8UgsQVdrnk9j8o1=D1A at mail dot gmail dot com> <5266CCDC dot 6090803 at redhat dot com> <CAHACq4qqw4MZznnW7zAnOMW2kHEYRRyymAphoEiY1Of5Qeks8w at mail dot gmail dot com> <87iowgalle dot fsf at fleche dot redhat dot com> <CAHACq4pfgqZ9kso-+LTw2CmZGjoq-FKmt7NACEqj=X563obccQ at mail dot gmail dot com> <52700B95 dot 5060209 at redhat dot com> <87li1b7u4n dot fsf at fleche dot redhat dot com>
Tom Tromey <tromey <at> redhat.com> writes:
> Cary> (Maybe a > git gc will clean things up, too.)
>
> Pedro> That's my expectation.
>
> It will but you will have to clear the reflog first for best results.
> When doing the grafting stuff I did:
>
> git reflog expire --expire=now --all
> git gc --prune=now --aggressive
>
> --aggressive takes a lot of time though.
I don't think --aggressive does what you think it does. They tell me that
using "git repack" with some flags (or even no flags) is nearly always
preferable; see:
http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/
(But of course you would certainly still want pruning to happen, but "git
repack" can do that too; for example, try "git repack -a".)
Also, it might (or might not) do even better if you trimmed out the
"refs/original/" hierarchy you've got in there. (Which, admittedly, may not
have been there when you posted this.)