[Top][All Lists]

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

Re: How to commit hunks using VC?

From: Stefan Monnier
Subject: Re: How to commit hunks using VC?
Date: Fri, 26 Oct 2018 19:07:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> 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?).


reply via email to

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