Variable: magit-read-worktree-directory-function
magit-read-worktree-directory-function is a customizable variable
defined in magit-worktree.el.
Value
magit-read-worktree-directory-sibling
Documentation
Function used to read the directory to be used as a new worktree.
This is called with two arguments, the prompt and the branch to be checked out. When not checking out a branch then use nil for the second argument.
This variable was added, or its default value changed, in magit version 4.4.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-worktree.el
;;; Options
(defcustom magit-read-worktree-directory-function
#'magit-read-worktree-directory-sibling
"Function used to read the directory to be used as a new worktree.
This is called with two arguments, the prompt and the branch to be
checked out. When not checking out a branch then use nil for the
second argument."
:package-version '(magit . "4.4.0")
:group 'magit-commands
:type `(radio (function-item ,#'magit-read-worktree-directory)
(function-item ,#'magit-read-worktree-directory-nested)
(function-item ,#'magit-read-worktree-directory-sibling)
(function-item ,#'magit-read-worktree-directory-offsite)
function))