emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/vc-got 6a973a7 106/145: simplify vc-got-root


From: ELPA Syncer
Subject: [elpa] externals/vc-got 6a973a7 106/145: simplify vc-got-root
Date: Thu, 9 Sep 2021 15:58:43 -0400 (EDT)

branch: externals/vc-got
commit 6a973a79a08fc69b9f5a6d69edb012ab97854ba3
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    simplify vc-got-root
---
 vc-got.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index 2ac2878..bb56d0b 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -163,8 +163,7 @@ If nil, use the value of `vc-diff-switches'.  If t, use no 
switches."
 
 (defun vc-got-root (file)
   "Return the work tree root for FILE, or nil."
-  (or (vc-file-getprop file 'got-root)
-      (vc-file-setprop file 'got-root (vc-find-root file ".got"))))
+  (vc-find-root file ".got"))
 
 (defmacro vc-got-with-worktree (file &rest body)
   "Evaluate BODY in the work tree directory of FILE."



reply via email to

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