projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2697123
)
vc-git-root: Remove unnecessary caching
author
Dmitry Gutov
<dgutov@yandex.ru>
Mon, 26 Oct 2020 21:01:08 +0000
(23:01 +0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Mon, 26 Oct 2020 21:01:08 +0000
(23:01 +0200)
* lisp/vc/vc-git.el (vc-git-root): Simplify (bug#42966).
lisp/vc/vc-git.el
patch
|
blob
|
history
diff --git
a/lisp/vc/vc-git.el
b/lisp/vc/vc-git.el
index b1880c0f7b0c88c14a9ff09d9804dad1f8e923ce..91554bb6d835cbeac8ee4142a12e88eb3df58e94 100644
(file)
--- 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" ())