This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: git is live


> From: Samuel Bronson <naesten@gmail.com>
> Date: Fri, 10 Jan 2014 02:55:36 +0000 (UTC)
> 
> >     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/

That article is old (2007!) and outdated.  Look into the source of
git-gc, and you will see that it actually invokes git-repack with the
exact options recommended by the article.

> (But of course you would certainly still want pruning to happen, but "git
> repack" can do that too; for example, try "git repack -a".)

Again, "git gc --aggressive" does that, too.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]