|
From: | Dmitry Gutov |
Subject: | Re: VC registered, but ignored |
Date: | Fri, 1 Sep 2023 04:03:43 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 31/08/2023 18:24, Eli Zaretskii wrote:
In a repository where *.txt files are ignored, I added to VC a file with the .txt extension, and was surprised to see the ':' indicator on the mode line although the file was up-to-date. Moreover, the tooltip said the file was "locally modified". That had me puzzled for a few minutes, until I saw the code in vc-hooks.el.
You added it with 'C-x v v'?We have a problem of sorts, or a break in the abstration, where (vc-state buffer-file-name) would return nil instead of 'ignored.
So the problem is your annotation won't show up if you just open an ignored file (for Git backend, at least). Is that okay for your purposes?
As for which character to use, maybe a period? Although that depends on what you want to bring attention to: usually people are happy to keep ignored files ignored.
[Prev in Thread] | Current Thread | [Next in Thread] |