unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to commit hunks using VC?
Date: Fri, 26 Oct 2018 19:07:53 -0400	[thread overview]
Message-ID: <jwva7n0l362.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 871s8cmk09.fsf@web.de

>> Whether you use "do ... undo" as above, or "cp foo foo.bak ... cp
>> foo.bak foo" or "stash ... unstash" is up to you.  To me these are
>> just minor variants of the same approach.
>
> That all sounds uncomfortable.  Doesn't VC provide something like "give
> me the index version of the current file as a separate buffer" together
> with a command to update the index from that buffer?  Then you could do
> anything you like with means of Emacs (like using Ediff to stage hunks),
> and hit a key to update the index from the buffer (like C-c C-c) when
> done.

AFAIK VC doesn't provide that, but I guess it could/should.
Patches welcome (note that VC currently makes every effort to hide the
Git index/staging, so to work well, the patch will probably require
several changes.  May I suggest Magit instead?).


        Stefan




  reply	other threads:[~2018-10-26 23:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26 13:26 How to commit hunks using VC? Diogo F. S. Ramos
2018-10-26 14:34 ` Dan Čermák
2018-10-26 15:56 ` Stefan Monnier
2018-10-26 16:43   ` Carlos Konstanski
2018-10-26 17:35   ` Eli Zaretskii
2018-10-26 18:44     ` Stefan Monnier
2018-10-26 19:34       ` Yuri Khan
2018-10-26 19:42         ` Stefan Monnier
2018-10-26 19:57           ` Yuri Khan
2018-10-26 19:59           ` Óscar Fuentes
2018-10-26 21:17             ` Stefan Monnier
2018-10-26 21:55               ` Óscar Fuentes
2018-10-26 22:16           ` Michael Heerdegen
2018-10-26 23:07             ` Stefan Monnier [this message]
2018-10-27  0:22               ` Michael Heerdegen
2018-10-26 18:03   ` Diogo F. S. Ramos
2018-10-26 18:48     ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwva7n0l362.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).