From: Brandon Casey Date: Wed, 01 Aug 2007 22:49:06 GMT Subject: Re: Git benchmark - comparison with Bazaar, Darcs, Git and Mercurial Message-ID: <46B10DE2.5060702@nrlssc.navy.mil> In-Reply-To: <20070801220350.GD28106@thunk.org> Theodore Tso wrote: > On Wed, Aug 01, 2007 at 03:15:25AM -0700, Junio C Hamano wrote: >> Perhaps if the destination is local, >> >> - if -s is given, just set up alternates, do nothing else; > > As I understand it, the main objection with making -s the default is > surprising result that could happen if you do a git-prune in the base > repository which causes objects which are borrowed from the base > repository via .git/objects/info/alternates, right? -s would be a lot safer to use if repack -a -d (as used by git-gc) was smarter. -a -d has the nasty side effect of doing what it seems only prune is intended to do... that is to remove unreferenced objects. -s usage currently has to be very well thought out, unless you're just using it for a short-lived temporary branch. If this unintended pruning could be avoided then an average user could go about their merry business repacking and git-gc'ing without a care, and only when doing a git-gc --prune would they need to do something special. -brandon