From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: Question regarding git fetch Date: Thu, 27 Aug 2009 17:50:07 -0400 Message-ID: <20090827215007.GA6231@coredump.intra.peff.net> References: <1251387045053-3527289.post@n2.nabble.com> <32541b130908270836m50553ccatddf4c870eec54ddb@mail.gmail.com> <20090827164657.GA17090@atjola.homenet> <32541b130908271022i6a825198i37e2ec82ed5f833c@mail.gmail.com> <20090827204835.GC4399@coredump.intra.peff.net> <20090827213426.GD4399@coredump.intra.peff.net> <7v7hwpors9.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Avery Pennarun , =?utf-8?B?QmrDtnJu?= Steinbrink , Tom Lambda , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Aug 27 23:50:20 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgmrL-0006Wo-NH for gcvg-git-2@lo.gmane.org; Thu, 27 Aug 2009 23:50:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753188AbZH0VuK (ORCPT ); Thu, 27 Aug 2009 17:50:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752668AbZH0VuJ (ORCPT ); Thu, 27 Aug 2009 17:50:09 -0400 Received: from peff.net ([208.65.91.99]:60068 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714AbZH0VuI (ORCPT ); Thu, 27 Aug 2009 17:50:08 -0400 Received: (qmail 877 invoked by uid 107); 27 Aug 2009 21:50:18 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.40) with (AES128-SHA encrypted) SMTP; Thu, 27 Aug 2009 17:50:18 -0400 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Thu, 27 Aug 2009 17:50:07 -0400 Content-Disposition: inline In-Reply-To: <7v7hwpors9.fsf@alter.siamese.dyndns.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Aug 27, 2009 at 02:44:54PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > # we usually fetch the remote's master straight into our production > > # branch for deployment > > $ git config remote.origin.fetch refs/heads/master:refs/heads/production > > > > # but today let's demo it first > > $ git fetch origin master:demo > > I think this is a good example that any change results from this > discussion should apply _only_ to cases where command line refspecs lack > colon (i.e. used to mean "do not store this anywhere but in FETCH_HEAD"). I don't think the colon is the issue. Consider the same situation, but I say: # but today let's demo it first $ git fetch origin master $ git checkout -b demo FETCH_HEAD I'm still screwed. The issue is that you consider your configured refspec destinations to be precious, and not merely a cache for what's happening on the remote side. -Peff