Revert feature added in bfd96e995d using project directories in vc (bug#41821)

This commit is contained in:
Juri Linkov 2020-07-02 01:08:18 +03:00
parent aa6c35e95f
commit c70a3a4163
4 changed files with 3 additions and 14 deletions

View file

@ -299,11 +299,6 @@ non-nil if FILE exists and its contents were successfully inserted."
(set-buffer-modified-p nil)
t))
(declare-function project-try-vc "project")
(defun vc-known-roots ()
"Return a list of known vc roots."
(seq-filter #'project-try-vc (project-known-project-roots)))
(defun vc-find-root (file witness)
"Find the root of a checked out project.
The function walks up the directory tree from FILE looking for WITNESS.