mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-15 03:11:54 -07:00
; Add a couple of FIXMEs
This commit is contained in:
parent
4ca13d98c9
commit
bcde7952b3
1 changed files with 4 additions and 1 deletions
|
|
@ -294,11 +294,14 @@ The directory names should be absolute. Used in the VC project
|
|||
backend implementation of `project-external-roots'.")
|
||||
|
||||
(defun project-try-vc (dir)
|
||||
(let* ((backend (ignore-errors (vc-responsible-backend dir)))
|
||||
(let* ((backend
|
||||
;; FIXME: This is slow. Cache it.
|
||||
(ignore-errors (vc-responsible-backend dir)))
|
||||
(root
|
||||
(pcase backend
|
||||
('Git
|
||||
;; Don't stop at submodule boundary.
|
||||
;; FIXME: Cache for a shorter time.
|
||||
(or (vc-file-getprop dir 'project-git-root)
|
||||
(let ((root (vc-call-backend backend 'root dir)))
|
||||
(vc-file-setprop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue