Re: git is live
Samuel Bronson <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
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.)