Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 755AA2F420D; Fri, 13 Jan 2012 14:46:36 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rlm92-0006tG-6n; Fri, 13 Jan 2012 18:46:36 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 4B09FEF; Fri, 13 Jan 2012 10:46:34 -0800 (PST) Received: from perhan.alvh.no-ip.org ([190.95.26.35] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 13 Jan 2012 10:46:32 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 370D46E543; Fri, 13 Jan 2012 15:46:10 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Simon Riggs , Magnus Hagander , Dave Page , Robert Haas , Pg Committers Subject: Re: pgsql: Typo fix. From: Alvaro Herrera To: Andrew Dunstan In-reply-to: <4F106A08.9010704@dunslane.net> References: <4F1052A6.40600@dunslane.net> <1326470664-sup-9639@alvh.no-ip.org> <4F106A08.9010704@dunslane.net> Date: Fri, 13 Jan 2012 15:46:10 -0300 Message-Id: <1326480117-sup-6114@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11278) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-80394-08098 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: simon@2ndquadrant.com X-Assp-Original-Subject: Re: [COMMITTERS] pgsql: Typo fix. Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/115 X-Sequence-Number: 47072 Excerpts from Andrew Dunstan's message of vie ene 13 14:29:44 -0300 2012: > Yeah. Just note this from the docs: >=20 > 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 th= e > merge started (and especially if those changes were further modifie= d > after the merge was started), git merge > --abort will in some cases be unable to reconstruct the original > (pre-merge) changes. Hm. Whenever I find myself trying to merge something in a tree that also has uncommitted changes (which is not very often), what I do is "git stash" to save my work elsewhere and then run the git merge. That way, if things go wrong (which is also not very often), I can just abort the merge and pop the patch from the stash, and I'm right back where I started. Otherwise, I pop my patch from the stash anyway and any merges are handled by the same merge mechanism, so I can also roll that back if things don't turn the way I initially wanted. So while you can certainly screw up and lose work, it's also true that you have all the tools not to. --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support