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

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

bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with


From: Andy Moreton
Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path.
Date: Sat, 06 Nov 2021 22:30:39 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt)

On Sat 06 Nov 2021, Lars Ingebrigtsen wrote:

> Andy Moreton <andrewjmoreton@gmail.com> writes:
>
>> Picking the more specific filename is good, but the longest string is
>> the wrong measure: what is wanted is the deepest path. For example:
>>
>>   verylongdirname/foo
>>   a/b/c/foo
>>
>> The second is a shorter string, but more specific.
>
> But didn't it just traverse upwards?  In which case longer is more
> specific.  (I may be misremembering the patch.)

Longer is better yes, but the patch counts characters when it should
count directories to determine which path is longer.

    AndyM






reply via email to

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