bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#52507: [PATCH] Option for vc-delete-file to keep file on disk


From: Dmitry Gutov
Subject: bug#52507: [PATCH] Option for vc-delete-file to keep file on disk
Date: Fri, 24 Dec 2021 02:48:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 23.12.2021 20:20, Juri Linkov wrote:
I doubt that anyone might want to commit the file deletion immediately,
because file deletions usually are committed together with other changes.

Right. That's why I suggested either to have a buffer-local var to store the "to be deleted" status, or do that in the staging area first.

But maybe git has a way to mark a file as deleted without actually deleting it?
So `git status --porcelain -z --untracked-files` could return "D" for such file
that still exists, this would be the simplest solution.

'git rm --cached', used in the patch for this issue originally, is indeed such command. Unless I misunderstood the question.

$ git rm --cached CONTRIBUTE
rm 'CONTRIBUTE' $ git status --porcelain --untracked-files
D  CONTRIBUTE
?? CONTRIBUTE





reply via email to

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