From: Brandon Casey Subject: Re: [ANNOUNCE] GIT 1.5.5.1 Date: Tue, 22 Apr 2008 12:37:44 -0500 Message-ID: <480E2268.6050907@nrlssc.navy.mil> References: <7vej8yako4.fsf@gitster.siamese.dyndns.org> <20080421235610.GB2631@dpotapov.dyndns.org> <480D2FEE.3010904@nrlssc.navy.mil> <20080422005556.GC2631@dpotapov.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Junio C Hamano , git@vger.kernel.org To: Dmitry Potapov X-From: git-owner@vger.kernel.org Tue Apr 22 19:39:15 2008 connect(): Connection refused Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JoMSS-0006nz-C2 for gcvg-git-2@gmane.org; Tue, 22 Apr 2008 19:39:08 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757893AbYDVRiV (ORCPT ); Tue, 22 Apr 2008 13:38:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760456AbYDVRiV (ORCPT ); Tue, 22 Apr 2008 13:38:21 -0400 Received: from mail1.nrlssc.navy.mil ([128.160.35.1]:52013 "EHLO mail.nrlssc.navy.mil" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759942AbYDVRiU (ORCPT ); Tue, 22 Apr 2008 13:38:20 -0400 Received: from starfish.gems.nrlssc.navy.mil (localhost [127.0.0.1]) by mail.nrlssc.navy.mil (8.13.7/8.13.7) with ESMTP id m3MHbjgS002502; Tue, 22 Apr 2008 12:37:45 -0500 Received: from tick.nrlssc.navy.mil ([128.160.25.48]) by starfish.gems.nrlssc.navy.mil with Microsoft SMTPSVC(6.0.3790.3959); Tue, 22 Apr 2008 12:37:44 -0500 User-Agent: Thunderbird 2.0.0.12 (X11/20080213) In-Reply-To: <20080422005556.GC2631@dpotapov.dyndns.org> X-OriginalArrivalTime: 22 Apr 2008 17:37:44.0874 (UTC) FILETIME=[92BE00A0:01C8A49F] X-TM-AS-Product-Ver: : ISVW-6.0.0.2339-5.0.0.1023-15862003 X-TM-AS-Result: : Yes--12.657000-0-31-1 X-TM-AS-Category-Info: : 31:0.000000 X-TM-AS-MatchedID: : =?us-ascii?B?MTUwNTY3LTcwMDA3NS0xMzkw?= =?us-ascii?B?MTAtMTA2NDIwLTcwNTEwMi03MDMzOTMtNzAwNzU2LTcwMTYxOS03?= =?us-ascii?B?MDkyOTEtNzAxNjE4LTcwMzQ2OC03MDA2OTMtNzA0OTI3LTcwODU1?= =?us-ascii?B?OC03MDI5MjAtNzAyNzM3LTcwMTYwNC03MDE4MzctNzAxOTI4LTcw?= =?us-ascii?B?MTQ1NS03MDMwOTYtNzA0NDEwLTcwNzExOS0xODgwMTktMTg4MTk4?= =?us-ascii?B?LTcwMDg0OS03MDIzNTgtNzExNDMyLTcwMjAyMC03MTE5NTMtNzA0?= =?us-ascii?B?NDk2LTcwNjI0OS03MDYxNTAtNzA3NDUxLTcwNjczNy03MDQwNDkt?= =?us-ascii?B?MTA1NzAwLTcwMTcxOS03MDU1ODQtNzA5MTM3LTcwMDQ4MS03MDcy?= =?us-ascii?B?MjUtNzAxNDUwLTcwODMyOC03MDczMjUtNzA0MDM0LTExMzIzMC03?= =?us-ascii?B?MTAyMDctNzA3MzYxLTcwNzQxMC0xNDgwMzktMTQ4MDUxLTIwMDQz?= Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Dmitry Potapov wrote: > On Mon, Apr 21, 2008 at 07:23:10PM -0500, Brandon Casey wrote: >> Dmitry Potapov wrote: >> >>> Johannes' patch removed this option, which IMHO was a significant user >>> interface improvement. >> Unless I missed something, this option has not been removed. The original >> purpose for its existence (which was to cause git-gc to call git-prune) >> has been removed. The call to git-prune within git-gc will remove _loose_ >> unreferenced objects, but _packed_ unreferenced objects are removed by >> repack. The --prune option to git-gc is still used to adjust the call to >> git-repack so that packed unreferenced objects are discarded. > > I thought that it had no effect any more, because it had been removed > from the git-gc man page. Now I have looked at the code now, and it seems > the difference between running git gc with and without the prune option > is that with this option the git repack is called with '-a' option while > without it with '-A'. Unfortunately, the '-A' option in the git-repack > is also undocumented, but based on the reading git-repack.sh, you are > right. So, now I wonder wether removing the --prune option from the man > page was the right thing to do. > >>> diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt >>> index 9758243..c1bf814 100644 >>> --- a/Documentation/git-clone.txt >>> +++ b/Documentation/git-clone.txt >>> @@ -65,10 +65,12 @@ OPTIONS >>> + >>> *NOTE*: this is a possibly dangerous operation; do *not* use >>> it unless you understand what it does. If you clone your >>> -repository using this option, then delete branches in the >>> -source repository and then run linkgit:git-gc[1] using the >>> -'--prune' option in the source repository, it may remove >>> -objects which are referenced by the cloned repository. >>> +repository using this option and then delete a branch or use >>> +any other git command that makes any previous existing commit >>> +unreachable, then after some time linkgit:git-gc[1] may remove >>> +unreachable objects, and this will break the cloned repository. >>> +Because some git commands may run git-gc, it may happen at any >>> +time after gc.pruneExpire time since commits became unreachable. >> I agree that something should be said here about shared repositories, >> but I think this wording is a little complicated (disclosure: I also >> submitted some text for this a few weeks ago :). Of course something >> is better than nothing. >> >> Here's the blurb I submitted if you're interested: >> +repository using this option and then delete branches in the >> +source repository, some objects may become unreferenced (or dangling). >> +These objects may be removed by normal git operations (such as git-commit[1]) >> +which automatically call git-gc[1]. If these objects are removed and >> +were referenced by the cloned repository, then the cloned repository >> +will become corrupt. > > I like your wording better though I still prefer to mention that > deleting branches is just one of many possible commands that may > create unreferenced commits, i.e. something like that: > > ... repository using this option and then delete branches (or use any > other git command that makes any existing commit unreferenced) ... That's fine, but one of us needs to resubmit. Care to do the honors? :) -brandon