all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using VC
Date: Sat, 4 Jan 2014 19:38:42 -0700	[thread overview]
Message-ID: <20140105023842.GA14022@hysteria.proulx.com> (raw)
In-Reply-To: <CAJ+TeocfuDHBguEO9DVWAcuye4rfjbvLGhpJ3jVNfi-cMfg7Vg@mail.gmail.com>

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



  parent reply	other threads:[~2014-01-05  2:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-04  6:31 Using VC Rustom Mody
2014-01-04  7:00 ` Dale Snell
2014-01-04 15:34 ` Rustom Mody
2014-01-04 19:28 ` Stefan Monnier
2014-01-05  2:38 ` Bob Proulx [this message]
2014-01-05  2:54 ` Rustom Mody
     [not found] ` <mailman.11014.1388863718.10748.help-gnu-emacs@gnu.org>
2014-01-07  0:08   ` Ted Zlatanov
2014-01-08  1:04     ` Bob Proulx
     [not found]     ` <mailman.11358.1389143088.10748.help-gnu-emacs@gnu.org>
2014-01-08 15:59       ` Ted Zlatanov
2014-01-07 22:11   ` Jorgen Grahn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140105023842.GA14022@hysteria.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.