From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Using VC Date: Sat, 4 Jan 2014 19:38:42 -0700 Message-ID: <20140105023842.GA14022@hysteria.proulx.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1388889546 29852 80.91.229.3 (5 Jan 2014 02:39:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2014 02:39:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 05 03:39:11 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VzdcM-0002sS-Oi for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jan 2014 03:39:10 +0100 Original-Received: from localhost ([::1]:56427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzdcM-0003RR-Af for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jan 2014 21:39:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vzdc7-0003QU-J9 for help-gnu-emacs@gnu.org; Sat, 04 Jan 2014 21:39:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vzdc1-0004mI-K3 for help-gnu-emacs@gnu.org; Sat, 04 Jan 2014 21:38:55 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:52159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vzdc1-0004m7-1H for help-gnu-emacs@gnu.org; Sat, 04 Jan 2014 21:38:49 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 4817921228 for ; Sat, 4 Jan 2014 19:38:42 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 2AF282DCCF; Sat, 4 Jan 2014 19:38:42 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95262 Archived-At: Rustom Mody wrote: > The VC command C-x v v claims to cycle through the appropriate actions > > However I find it does neither > - push to remote That would be a misfeature if it did it. The key phrase is "appropriate". A 'git push' is quite different from a 'git commit'. A local commit is appropriate but pushing to a remote is not. A typical git workflow includes local commits but publishing your content by pushing it up to a remote should only be done after more consideration. Because a typical git workflow usually includes many changes in a changeset and often we rebase and cherrypick in our local repository to prepare it properly for publishing it. Check that a program still builds and runs the test suite. Only then should you publish. Basically shaping it like a sculpture into a good changeset and then intentionally publishing the changeset. > - save file This works for me. If I haven't saved the file then emacs vc mode prompts me with: Buffer foo modified; save it? (y or n) If you respond y then it saves the buffer before committing it. It does this *after* collecting the commit message. Go ahead and test it by typing in a commit message and finishing it with C-c C-c and if by then you haven't saved the buffer then it will prompt you. It is late in the process but all of the way up to that point you may be editing and changing the file. The commit doesn't happen until that point. > Am I missing something > [Backend git] Works for me. Bob