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, is an integer, its absolute value specifies the maximum depth to look for Git repositories. If it is 0, only add DIRECTORY itself. If it is positive, do not list nested repositories. If it is negative, descend into repositories as for any other directory.
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-20261101.2154/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, is an integer, its
absolute value specifies the maximum depth to look for Git repositories.
If it is 0, only add DIRECTORY itself. If it is positive, do not list
nested repositories. If it is negative, descend into repositories as
for any other directory.
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
:safe #'listp
:type '(repeat (cons directory (integer :tag "Depth"))))