From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl Worth Subject: Re: GIT vs Other: Need argument Date: Mon, 23 Apr 2007 11:54:14 -0700 Message-ID: <877is29b1l.wl%cworth@cworth.org> References: <20070417104520.GB4946@moonlight.home> <8b65902a0704170841q64fe0828mdefe78963394a616@mail.gmail.com> <200704171818.28256.andyparkins@gmail.com> <20070417173007.GV2229@spearce.org> <462521C7.2050103@softax.com.pl> <4627ABBB.8060709@softax.com.pl> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Apr_23_11:54:06_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: Marcin Kasperski , git@vger.kernel.org, Junio C Hamano To: Linus Torvalds X-From: git-owner@vger.kernel.org Mon Apr 23 20:54:21 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hg3g4-0002OA-UG for gcvg-git@gmane.org; Mon, 23 Apr 2007 20:54:21 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161474AbXDWSyS (ORCPT ); Mon, 23 Apr 2007 14:54:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161485AbXDWSyS (ORCPT ); Mon, 23 Apr 2007 14:54:18 -0400 Received: from theworths.org ([217.160.253.102]:56275 "EHLO theworths.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161474AbXDWSyR (ORCPT ); Mon, 23 Apr 2007 14:54:17 -0400 Received: (qmail 7238 invoked from network); 23 Apr 2007 14:54:14 -0400 Received: from localhost (HELO raht.cworth.org) (127.0.0.1) by localhost with SMTP; 23 Apr 2007 14:54:14 -0400 In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.4 Mule/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --pgp-sign-Multipart_Mon_Apr_23_11:54:06_2007-1 Content-Type: text/plain; charset=US-ASCII On Thu, 19 Apr 2007 13:57:35 -0700 (PDT), Linus Torvalds wrote: > - Case #1 would be using git basically as a "anonymous CVS" replacement > to track somebody others project. I'd extend this to also say "tracking a specific branch" in some project. When I raised this recently, Junio suggested something like the following: git config --global branch.autosetupmerge true [*] git clone git checkout -b origin/ git pull I haven't gotten around to replying to that message yet, but the thrust of my reply would be that that does actually work, but it's not even close to the ease with which one can track the default branch as Linus described: > None of the above are ever really needed for that case, and I think all > you really want to learn is: > > git clone > git pull So, currently, all non-default branches have a sort of second-class status from the point of view of users that just want to track them. Compare this to svn, for example. Now, svn has an insanely broken model for what a branch actually is, while git's model is sane. But I think that with svn the "anonymously tracking a branch" use case isn't any harder for any one branch compared to any other, (it's just a matter of starting with the right URL). I'd love to see git achieve the same thing. -Carl [*] Is the command I have above even correct? What Junio actually suggested was: $ cat >>$HOME/.gitconfig <<\EOF [branch] autosetupmerge EOF But I can't find a way to use git-config create a block that looks like that. I'm just guessing that "autosetupmerge = true" works equivalently, but I could be wildly wrong. --pgp-sign-Multipart_Mon_Apr_23_11:54:06_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGLQDW6JDdNq8qSWgRApcZAJsHiXBQnen6hCLK+uuJbdTVmmNtggCfaw3N /PuX/+jweIaRRw53FneZv4g= =hBYE -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Apr_23_11:54:06_2007-1--