From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19011 invoked by alias); 10 Jan 2014 06:53:40 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 19000 invoked by uid 89); 10 Jan 2014 06:53:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Jan 2014 06:53:36 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MZ600F00B19I300@a-mtaout20.012.net.il> for gdb@sourceware.org; Fri, 10 Jan 2014 08:53:34 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZ600FDYB598YA0@a-mtaout20.012.net.il>; Fri, 10 Jan 2014 08:53:34 +0200 (IST) Date: Fri, 10 Jan 2014 06:53:00 -0000 From: Eli Zaretskii Subject: Re: git is live In-reply-to: To: Samuel Bronson Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83bnzkcope.fsf@gnu.org> References: <877gd5iyaz.fsf@fleche.redhat.com> <5266CCDC.6090803@redhat.com> <87iowgalle.fsf@fleche.redhat.com> <52700B95.5060209@redhat.com> <87li1b7u4n.fsf@fleche.redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00014.txt.bz2 > From: Samuel Bronson > 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.