From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: VC mode and git Date: Sat, 28 Mar 2015 12:15:59 -0400 Message-ID: References: <86egoeusg2.fsf@example.com> <87384qzxqy.fsf@igel.home> <83bnjen71r.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: ger.gmane.org 1427559410 14909 80.91.229.3 (28 Mar 2015 16:16:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 16:16:50 +0000 (UTC) Cc: sva-news@mygooglest.com, schwab@suse.de, eliz@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 28 17:16:42 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 1YbtPL-0005C9-Cz for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2015 17:16:23 +0100 Original-Received: from localhost ([::1]:54614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbtPK-0006aD-GY for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2015 12:16:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbtP2-00065l-5A for emacs-devel@gnu.org; Sat, 28 Mar 2015 12:16:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbtOz-0002Ga-1H for emacs-devel@gnu.org; Sat, 28 Mar 2015 12:16:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbtOy-0002GW-UV for emacs-devel@gnu.org; Sat, 28 Mar 2015 12:16:00 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YbtOx-0001Jj-Ol; Sat, 28 Mar 2015 12:15:59 -0400 In-reply-to: (message from Stefan Monnier on Fri, 27 Mar 2015 08:54:31 -0400) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:184465 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > But we could also have an `after-commit-hook' to which Richard could > attach a call to `vc-push'. 1. In principle, that would do the job, but people are saying that that is unreliable, that if the push fails it would leave things in a bad state. I have not yet seen a definitive answer about whether git reset is a reliable fix for that. 2. It would be ok if this asks for user approval rather than just going ahead. 3. It would be good to make a simple way to request this in the repository, perhaps by touching a certain file name, so that the simple Git recommendations could tell people a simple way to do this. Can the repository itself have a file that directs git to run a shell command after pushing? That command could be a shell conditional that does a push if a certain file name exists. Then the simple Git recommendations could say to touch that file name. The command could check for the file in the current directory and each of its parents, stopping at the root dir of the repository. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! See stallman.org/skype.html.