|
From: | Dmitry Gutov |
Subject: | bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path. |
Date: | Tue, 14 Sep 2021 02:48:11 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 13.09.2021 19:10, Eli Zaretskii wrote:
From: Manuel Giraud<manuel@ledu-giraud.fr> Date: Mon, 13 Sep 2021 17:47:19 +0200 When calling 'vc-next-action' on an unregistered file, VC could choose a backend that is very far above this file in the directory hierarchy. In my case, it chooses SVN as backend (because I have one in my homedir) but I wanted it to choose the Git backend of the directory this file resides. This patch solves this issue by selecting the backend with the most specific (in fact, the longest string) path to the file.Isn't that already available with "C-u C-x v v"?
A better default is an improvement anyway.I think the patch is a good idea, especially given that vc-responsible-backend has only recently been changed in the same way (commit 2697123933).
[Prev in Thread] | Current Thread | [Next in Thread] |