Function: magit-read-worktree-directory-nested

magit-read-worktree-directory-nested is a byte-compiled function defined in magit-worktree.el.

Signature

(magit-read-worktree-directory-nested PROMPT BRANCH)

Documentation

Call read-directory-name in current worktree.

For read-directory-names INITIAL argument use a string based on BRANCH, replacing slashes with dashes. If BRANCH is nil, use nil as INITIAL. Always forward PROMPT as-is.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-worktree.el
(defun magit-read-worktree-directory-nested (prompt branch)
  "Call `read-directory-name' in current worktree.
For `read-directory-name's INITIAL argument use a string based on
BRANCH, replacing slashes with dashes.  If BRANCH is nil, use nil
as INITIAL.  Always forward PROMPT as-is."
  (read-directory-name prompt nil nil nil
                       (and branch (string-replace "/" "-" branch))))