Variable: magit-todos-depth
magit-todos-depth is a customizable variable defined in
magit-todos.el.
Value
nil
Documentation
Maximum depth of files in repo working tree to scan for to-dos.
A value of 0 means to search only the current directory, while a value of 1 means to search directories one level deeper, etc. Deeper scans can be slow in large projects. You may wish to set this in a directory-local variable for certain projects.
Source Code
;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(defcustom magit-todos-depth nil
"Maximum depth of files in repo working tree to scan for to-dos.
A value of 0 means to search only the current directory, while a
value of 1 means to search directories one level deeper, etc.
Deeper scans can be slow in large projects. You may wish to set
this in a directory-local variable for certain projects."
:type '(choice (const :tag "Unlimited" nil)
(const :tag "Repo root directory only" 0)
(integer :tag "N levels below the repo root")))