From: Dmitry Gutov Date: Mon, 26 Oct 2020 21:01:08 +0000 (+0200) Subject: vc-git-root: Remove unnecessary caching X-Git-Tag: emacs-28.0.90~5413 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c7a3bd9b56912be30adaaef75f10e369e6c62886;p=emacs.git vc-git-root: Remove unnecessary caching * lisp/vc/vc-git.el (vc-git-root): Simplify (bug#42966). --- diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index b1880c0f7b0..91554bb6d83 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" ())