Re: Blobs not referenced by file (anymore) are not removed by GC
- From
Jeff King <peff@peff.net>
- Date
- Dec 10, 2014, 07:11 UTC
- Message-ID
- <20141210071119.GA18104@peff.net>
- In-Reply-To
- <CAFY1edY=Ren9krK1-yFoxt92AAushUyqnbt=69hdXMeiBFAK=w@mail.gmail.com>
On Tue, Dec 09, 2014 at 10:15:31PM +0000, Roberto Tyley wrote:
Show 14 quoted lines
> > Not that I expect you to want to work on filter-branch. :) But maybe > > food for thought for a BFG feature. > > I haven't heard much demand for a recover/restore feature on the BFG > (I think by the time people get to the BFG, they're pretty sure they > want to go ahead with the procedure!) but I'll bear it in mind. Mind > you, to make the post-rewrite clean-up easier, I'd be happy to > contribute a patch that gives 'gc' a flag to do the equivalent of: > > git reflog expire --expire=now --all && git gc --prune=now --aggressive > > Maybe: > > git gc --purge
Yeah, that is common enough that it might be worthwhile (you probably want --expire-unreachable in the reflog invocation, though).
-Peff