Variable: magit-repository-directories
magit-repository-directories is a customizable variable defined in
magit-repos.el.
Value
nil
Documentation
List of directories that are or contain Git repositories.
Each element has the form (DIRECTORY . DEPTH). DIRECTORY has to be a directory or a directory file-name, a string. DEPTH, an integer, specifies the maximum depth to look for Git repositories. If it is 0, then only add DIRECTORY itself.
This option controls which repositories are being listed by
magit-list-repositories. It also affects magit-status
(which see) in potentially surprising ways.
This variable was added, or its default value changed, in magit version 3.0.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-repos.el
;;; Options
(defcustom magit-repository-directories nil
"List of directories that are or contain Git repositories.
Each element has the form (DIRECTORY . DEPTH). DIRECTORY has
to be a directory or a directory file-name, a string. DEPTH,
an integer, specifies the maximum depth to look for Git
repositories. If it is 0, then only add DIRECTORY itself.
This option controls which repositories are being listed by
`magit-list-repositories'. It also affects `magit-status'
\(which see) in potentially surprising ways."
:package-version '(magit . "3.0.0")
:group 'magit-essentials
:type '(repeat (cons directory (integer :tag "Depth"))))