Function: vc-dir-root

vc-dir-root is an autoloaded, interactive and byte-compiled function defined in vc-dir.el.gz.

Signature

(vc-dir-root)

Documentation

Run vc-dir in the repository root directory without prompt.

If the default directory of the current buffer is not under version control, prompt for a directory.

Probably introduced at or before Emacs version 28.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
;;;###autoload
(defun vc-dir-root ()
  "Run `vc-dir' in the repository root directory without prompt.
If the default directory of the current buffer is
not under version control, prompt for a directory."
  (interactive)
  (let ((root-dir (vc-root-dir)))
    (if root-dir (vc-dir root-dir)
      (call-interactively 'vc-dir))))