From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain Joyeux Subject: Re: [PATCH] better git-submodule status output Date: Mon, 7 Jul 2008 17:42:51 +0200 Message-ID: <20080707154251.GK3696@joyeux> References: <7vhcb3o7q3.fsf@gitster.siamese.dyndns.org> <20080706160758.GA23385@jhaampe.org> <20080707062142.GA5506@jhaampe.org> <32541b130807070725p6fa4d0dfne9f04bc857920dc7@mail.gmail.com> <20080707145726.GI3696@joyeux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avery Pennarun , Junio C Hamano , Lars Hjemli , Ping Yin , Mark Levedahl , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Mon Jul 07 17:44:08 2008 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 1KFssk-0004Md-2h for gcvg-git-2@gmane.org; Mon, 07 Jul 2008 17:44:02 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbYGGPmz (ORCPT ); Mon, 7 Jul 2008 11:42:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753602AbYGGPmz (ORCPT ); Mon, 7 Jul 2008 11:42:55 -0400 Received: from smtprelay07.ispgateway.de ([80.67.29.7]:42398 "EHLO smtprelay07.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbYGGPmy (ORCPT ); Mon, 7 Jul 2008 11:42:54 -0400 Received: from [134.102.219.50] (helo=joyeux) by smtprelay07.ispgateway.de with esmtps (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KFsrd-0006xH-1w; Mon, 07 Jul 2008 17:42:53 +0200 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Df-Sender: [pbs]965142 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Jul 07, 2008 at 04:21:00PM +0100, Johannes Schindelin wrote: > > > > Thus, I'd say the best fix would be to find a way to have "git pull" or > > > > "git fetch" in the supermodule also do a fetch in the submodule. > > > If I am actively working on the submodule, the supermodule has _no > > > business_ trying to wreck my state. > > > > Is it possible to make 'fetch' only .. well .. fetch objects, without > > updating any refs ? In that case it would wreck no state as no state > > would be updated. > > You have no business sneaking a fetch into an operation that does not need > one. Period. Well. Given that yourself were replying to having "git fetch" fetching submodules as well, maybe you could tell me how "git fetch" is an operation that does not need fetching[1]. Moreover, on the "need" point, I do think that git-submodule (or git in general) needs a way to fetch (or to git remote update) all submodules in one operation. Otherwise, managing submodules becomes hell very quickly. Sylvain [1] I know, it sounds like a smurf talking.