From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Carl Worth Subject: Re: Avoiding uninteresting merges in Cairo Date: Thu, 14 Dec 2006 19:17:04 -0800 Message-ID: <87tzzx4zm7.wl%cworth@cworth.org> References: <20061215020629.GK26202@spearce.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Thu_Dec_14_19:16:55_2006-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Fri, 15 Dec 2006 03:18:39 +0000 (UTC) Cc: git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org In-Reply-To: <20061215020629.GK26202@spearce.org> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.4 Mule/5.0 (SAKAKI) Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gv3aj-0007Yc-2Y for gcvg-git@gmane.org; Fri, 15 Dec 2006 04:18:33 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbWLODST (ORCPT ); Thu, 14 Dec 2006 22:18:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751721AbWLODST (ORCPT ); Thu, 14 Dec 2006 22:18:19 -0500 Received: from cworth.org ([217.160.249.188]:36915 "EHLO theworths.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751727AbWLODSS (ORCPT ); Thu, 14 Dec 2006 22:18:18 -0500 Received: (qmail 425 invoked from network); 14 Dec 2006 22:18:14 -0500 Received: from localhost (HELO raht.cworth.org) (127.0.0.1) by localhost with SMTP; 14 Dec 2006 22:18:14 -0500 To: Shawn Pearce Sender: git-owner@vger.kernel.org --pgp-sign-Multipart_Thu_Dec_14_19:16:55_2006-1 Content-Type: text/plain; charset=US-ASCII On Thu, 14 Dec 2006 21:06:29 -0500, Shawn Pearce wrote: > http://lists.freedesktop.org/archives/cairo/2006-April/006648.html > > after he had a merge gone wrong in his working directory and was > asking for help. > > Cario has seriously been using `reset --hard HEAD^` as part of its > workflow since April? I wrote that in April, but I've never pointed anyone at it since then. I've learned a lot since then, (and git has changed too). One thing I've been meaning to do is to write up a more complete introduction on using git to manage cairo's tree to put into cairo's wiki or so, (it would have helped a newcomer like jwatt here). > Why haven't you pushed for a rebase merge > strategy to be tried before a trivial index merge as an option in > git-merge (e.g. pull.twohead=rebase recursive)? I've mentioned it as an idea once or twice on this list. I've never "pushed" for any change along these lines simply because I haven't ever done any implementation for this. Also, I don't actually need this. I don't use the "reset --hard" workflow suggested in the mail above. I always obtain remote changes with "git fetch" and then examine things locally and decide to either merge (or fast forward) with "git pull", (though maybe I'll start using "git merge" now), or else to use "git rebase" to avoid the noisy merge commits. That workflow of fetching changes and then exploring them locally before merging is why I rarely take advantage of the combined fetch+merge aspect of "git pull". It's exceedingly rare for me to ever call "git pull" with any URL but ".", (though I use "git fetch" with various URLs on a regular basis). -Carl PS. It's funny how much easier it is to type "cario" than "cairo". I used to do that all the time, (though in this sentence here, when I actually _tried_ to type "cario" it came out as "cairo" the first time). I think the "cario" typo is a Qwerty artefact---the left hand gets all its keypresses in before the right hand gets going. --pgp-sign-Multipart_Thu_Dec_14_19:16:55_2006-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFghOw6JDdNq8qSWgRAnUAAJ49Vyo4v1uXaXYlJd41MYk7SWNp3wCfQuqJ PzSQCy19KRrD6II8KyrXb6Q= =dvvi -----END PGP SIGNATURE-----