From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: VC mode and git Date: Wed, 25 Mar 2015 19:32:08 +0200 Message-ID: <838uelouef.fsf@gnu.org> References: <86egoeusg2.fsf@example.com> <83pp7yp5po.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427304769 9005 80.91.229.3 (25 Mar 2015 17:32:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2015 17:32:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Steinar Bang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 25 18:32:40 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 1YapAJ-00046i-Hm for ged-emacs-devel@m.gmane.org; Wed, 25 Mar 2015 18:32:27 +0100 Original-Received: from localhost ([::1]:40446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YapAI-00053u-Vi for ged-emacs-devel@m.gmane.org; Wed, 25 Mar 2015 13:32:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YapAF-00053c-Fk for emacs-devel@gnu.org; Wed, 25 Mar 2015 13:32:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YapAB-000128-6W for emacs-devel@gnu.org; Wed, 25 Mar 2015 13:32:23 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:53281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YapAA-00011r-UN for emacs-devel@gnu.org; Wed, 25 Mar 2015 13:32:19 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NLS0020037T5J00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Wed, 25 Mar 2015 19:32:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLS001963DRXBB0@a-mtaout20.012.net.il>; Wed, 25 Mar 2015 19:32:15 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:184237 Archived-At: > From: Steinar Bang > Date: Wed, 25 Mar 2015 09:52:08 +0100 > > > A related question is: does "C-x v v" at all make sense with Git and > > other dVCSes? > > Yes, it does. > > I use it on single file changes. Related changes over multiple files, I > do from magit. There are almost no single-file changes in Emacs: documentation and NEWS need to be updated as well, to say nothing of ChangeLog. And I see no reason why "C-x v v" should be limited to such a small and insignificant minority of use cases as single-file changes. > > If it does, what would be the DWIM cycle there? > > Make a local commit, pointing to the previous commit of the current > branch and move the HEAD to this commit, and stop there. That stops short of being useful, because omitting "push" altogether makes the workflow deficient, at least when you work on a public project. Also, what you propose means "C-x v v" with Git is just an alias for a single command, which is not what "C-x v v" was supposed to do. > > E.g., would it make sense for "C-x v v" to push when the previous > > action was commit and there are not uncommitted changes? > > No. Great argumentation, thanks.