From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: VC mode and git Date: Fri, 27 Mar 2015 08:59:41 -0400 Message-ID: References: <20150324163714.GA27775@thyrsus.com> <83y4mmpb1n.fsf@gnu.org> <87lhim9sqp.fsf@igel.home> <87egoc56qg.fsf@gnu.org> <83egoanb8t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427461201 27290 80.91.229.3 (27 Mar 2015 13:00:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 13:00:01 +0000 (UTC) Cc: esr@thyrsus.com, tsdh@gnu.org, schwab@linux-m68k.org, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 27 13:59:53 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YbTrc-0006hU-4r for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2015 13:59:52 +0100 Original-Received: from localhost ([::1]:50084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbTrb-0005Gm-Gz for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2015 08:59:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbTrX-0005Gg-VJ for emacs-devel@gnu.org; Fri, 27 Mar 2015 08:59:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbTrX-00057d-3Y for emacs-devel@gnu.org; Fri, 27 Mar 2015 08:59:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:46089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbTrS-0004rI-JO; Fri, 27 Mar 2015 08:59:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXYBBVYjEAs0EhQYDSSqJIxkCQMBAoM+A4NwBKg7 X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXYBBVYjEAs0EhQYDSSqJIxkCQMBAoM+A4NwBKg7 X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114735969" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Mar 2015 08:59:41 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id AF9B71461; Fri, 27 Mar 2015 08:59:41 -0400 (EDT) In-Reply-To: <83egoanb8t.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 27 Mar 2015 10:35:46 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184378 Archived-At: > . using the script, the commit+push are not an atomic operation, so > the commit could succeed, but the following push could fail, > leaving your repository out of sync That's true: we need to uncommit if the push fails. BTW, we could/should make this case very rare by adding a pre-commit hook which makes sure that we're up-to-date before we can commit. > . it will be hard (or even impossible) to do a local commit without > pushing, because the hook will always be run; you need the local > commit for when you merge and resolve conflicts and in other > situations I don't see why Richard (or someone in his situation) would ever need to do a local commit. Stefan