emacs-diffs
[Top][All Lists]
Advanced

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

master f3277128e0: ; * lisp/vc/vc.el (vc-responsible-backend): Explain l


From: Eli Zaretskii
Subject: master f3277128e0: ; * lisp/vc/vc.el (vc-responsible-backend): Explain last change.
Date: Fri, 16 Sep 2022 07:18:31 -0400 (EDT)

branch: master
commit f3277128e0e8741cf20c72c718c83e848cd92f2f
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * lisp/vc/vc.el (vc-responsible-backend): Explain last change.
---
 lisp/vc/vc.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 05109256bd..4688137d92 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1014,6 +1014,10 @@ responsible for the given file."
                           (lambda (backend)
                             (when-let ((dir (vc-call-backend
                                              backend 'responsible-p file)))
+                              ;; We run DIR through `expand-file-name'
+                              ;; so that abbreviated directories, such
+                              ;; as "~/", wouldn't look "less specific"
+                              ;; due to their artificially shorter length.
                               (cons backend (expand-file-name dir))))
                           vc-handled-backends))))
         ;; Just a single response (or none); use it.



reply via email to

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