|
From: | Dmitry Gutov |
Subject: | bug#52507: [PATCH] Option for vc-delete-file to keep file on disk |
Date: | Sun, 26 Dec 2021 21:12:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 26.12.2021 20:43, Juri Linkov wrote:
Both "D " and "??" correspond to the 'unregistered' status in vc-dir according to 'vc-git--git-status-to-vc-state': (defun vc-git--git-status-to-vc-state (code-list) ... ('("D " "??") 'unregistered)
"D " corresponds to 'removed', see the third branch of (pcase code-list ...) inside vc-git--git-status-to-vc-state.
But indeed, when you pass a two-element list to vc-git--git-status-to-vc-state, that branch is not taken, and the next one (which you quoted) returns 'unregistered'.
That's entirely up to vc-git-state. Your new code can make a different decision: the information is all there.
[Prev in Thread] | Current Thread | [Next in Thread] |