[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to commit hunks using VC?

From: Michael Heerdegen
Subject: Re: How to commit hunks using VC?
Date: Sat, 27 Oct 2018 00:16:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <> writes:

> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]