|
From: | Ashwin Kafle |
Subject: | bug#52507: [PATCH] Option for vc-delete-file to keep file on disk |
Date: | Sun, 26 Dec 2021 15:51:39 +0000 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Dmitry Gutov <dgutov@yandex.ru> writes: > On 26.12.2021 17:23, Ashwin Kafle wrote: >> Say you use the current vc-delete-file and then immediately restore it >> from backup (before commiting). VC will show the file as unregistered. >> I think this behavior of vc should be fixed instead. > > What would you have it do instead? I think a better way would be to show two files in vc-dir one saying unregistered and one saying deleted. You mark the one saying deleted then commit that fileset which will not be present after being commited. That mechanism can also be used for git add -p as you can show staged file and unsatged file separately.
[Prev in Thread] | Current Thread | [Next in Thread] |