[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?).
Stefan
- Re: How to commit hunks using VC?, (continued)
- Re: How to commit hunks using VC?, Carlos Konstanski, 2018/10/26
- Re: How to commit hunks using VC?, Eli Zaretskii, 2018/10/26
- Re: How to commit hunks using VC?, Stefan Monnier, 2018/10/26
- Re: How to commit hunks using VC?, Yuri Khan, 2018/10/26
- Re: How to commit hunks using VC?, Stefan Monnier, 2018/10/26
- Re: How to commit hunks using VC?, Yuri Khan, 2018/10/26
- Re: How to commit hunks using VC?, Óscar Fuentes, 2018/10/26
- Re: How to commit hunks using VC?, Stefan Monnier, 2018/10/26
- Re: How to commit hunks using VC?, Óscar Fuentes, 2018/10/26
- Re: How to commit hunks using VC?, Michael Heerdegen, 2018/10/26
- Re: How to commit hunks using VC?,
Stefan Monnier <=
- Re: How to commit hunks using VC?, Michael Heerdegen, 2018/10/26
Re: How to commit hunks using VC?, Diogo F. S. Ramos, 2018/10/26