Function: vc-working-tree-switch-project
vc-working-tree-switch-project is an autoloaded, interactive and
byte-compiled function defined in vc.el.gz.
Signature
(vc-working-tree-switch-project DIR)
Documentation
Like C-x p p (project-switch-project) but limited to projects with the same backing repository.
Must be called from within an existing VC working tree. Prompts for the directory file name of the other working tree.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;;###autoload
(defun vc-working-tree-switch-project (dir)
"Like \\[project-switch-project] but limited to projects with the same backing repository.
Must be called from within an existing VC working tree.
Prompts for the directory file name of the other working tree."
;; There is no point in calling this from Lisp as opposed to calling
;; `project-switch-project' directly because it is a trivial wrapper.
(declare (interactive-only project-switch-project))
(interactive
(list
(vc--prompt-other-working-tree (vc-responsible-backend default-directory)
"Other working tree to switch to")))
(project-switch-project dir))