Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C82312F420D; Fri, 13 Jan 2012 13:30:18 -0400 (AST) Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RlkxC-0005dE-Qs; Fri, 13 Jan 2012 17:30:18 +0000 X-Originating-IP: 217.70.178.141 Received: from mfilter13-d.gandi.net (mfilter13-d.gandi.net [217.70.178.141]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id B2F52172067; Fri, 13 Jan 2012 18:29:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter13-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter13-d.gandi.net (mfilter13-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id z3p2oy3FqZUx; Fri, 13 Jan 2012 18:29:50 +0100 (CET) X-Originating-IP: 98.27.54.176 Received: from [192.168.10.146] (cpe-098-027-054-176.nc.res.rr.com [98.27.54.176]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A92DB17208B; Fri, 13 Jan 2012 18:29:45 +0100 (CET) Message-ID: <4F106A08.9010704@dunslane.net> Date: Fri, 13 Jan 2012 12:29:44 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Alvaro Herrera CC: Simon Riggs , Magnus Hagander , Dave Page , Robert Haas , Pg Committers Subject: Re: pgsql: Typo fix. References: <4F1052A6.40600@dunslane.net> <1326470664-sup-9639@alvh.no-ip.org> In-Reply-To: <1326470664-sup-9639@alvh.no-ip.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/114 X-Sequence-Number: 47071 On 01/13/2012 11:05 AM, Alvaro Herrera wrote: > Excerpts from Andrew Dunstan's message of vie ene 13 12:49:58 -0300 2012: >> On 01/13/2012 10:22 AM, Simon Riggs wrote: >>> On Fri, Jan 13, 2012 at 2:26 PM, Magnus Hagander wrote: >>> >>>> Just FWIW, I use a separate development repository as well. But I have >>>> it added as a remote from the "commit repository", and thus just do a >>>> "git merge --squash" instead of manually moving them with "patch". >>>> >>>> But I am very much a fan of keeping the repos separate for just that >>>> reason - don't want to accidentally commit dev code. >>> OK thanks. >>> >>> My patch foo seems occasionally faulty, but git merge --disaster is >>> something I'm happy to avoid. I'll work on my hand grenade juggling >>> skills before I do that. >> >> How you work is up to you, but "git merge --squash" is pretty safe, >> since it doesn't actually commit anything. > And if things go wrong you can always do git merge --abort. > > I, too, used to be scared of some of the options that git gives us, but > after experimentation I found some of them to be hugely useful and safe > enough that I now very rarely run use patches anymore. Yeah. Just note this from the docs: The third syntax ("git merge --abort") can only be run after the merge has resulted in conflicts. git merge --abort will abort the merge process and try to reconstruct the pre-merge state. However, if there were uncommitted changes when the merge started (and especially if those changes were further modified after the merge was started), git merge --abort will in some cases be unable to reconstruct the original (pre-merge) changes. Therefore: Warning: Running git merge with uncommitted changes is discouraged: while possible, it leaves you in a state that is hard to back out of in the case of a conflict. Of course, if you aren't doing dev work on the tree in question that shouldn't apply, presumably. cheers andrew