emacs-diffs
[Top][All Lists]
Advanced

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

master c7a3bd9: vc-git-root: Remove unnecessary caching


From: Dmitry Gutov
Subject: master c7a3bd9: vc-git-root: Remove unnecessary caching
Date: Mon, 26 Oct 2020 17:11:35 -0400 (EDT)

branch: master
commit c7a3bd9b56912be30adaaef75f10e369e6c62886
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    vc-git-root: Remove unnecessary caching
    
    * lisp/vc/vc-git.el (vc-git-root): Simplify (bug#42966).
---
 lisp/vc/vc-git.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index b1880c0..91554bb 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1573,8 +1573,7 @@ This requires git 1.8.4 or later, for the \"-L\" option 
of \"git log\"."
 (defun vc-git-extra-status-menu () vc-git-extra-menu-map)
 
 (defun vc-git-root (file)
-  (or (vc-file-getprop file 'git-root)
-      (vc-file-setprop file 'git-root (vc-find-root file ".git"))))
+  (vc-find-root file ".git"))
 
 ;; grep-compute-defaults autoloads grep.
 (declare-function grep-read-regexp "grep" ())



reply via email to

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