commit 6a973a79a08fc69b9f5a6d69edb012ab97854ba3 from: Omar Polo date: Wed Aug 11 17:34:38 2021 UTC simplify vc-got-root commit - 49945a03f424a31602b353a9a26d5a0bf19b9a9f commit + 6a973a79a08fc69b9f5a6d69edb012ab97854ba3 blob - 2ac28786174658937082706a5a1bbaacb1ad6391 blob + bb56d0b4000f341d2fa5335ec3a5588897c88d22 --- vc-got.el +++ vc-got.el @@ -163,8 +163,7 @@ If nil, use the value of `vc-diff-switches'. If t, us (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."