Function: magit-read-shell-command

magit-read-shell-command is a byte-compiled function defined in magit.el.

Signature

(magit-read-shell-command &optional TOPLEVEL INITIAL-INPUT)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit.el
(defun magit-read-shell-command (&optional toplevel initial-input)
  (let ((default-directory
         (if (or toplevel current-prefix-arg)
             (or (magit-toplevel)
                 (magit--not-inside-repository-error))
           default-directory)))
    (read-shell-command (if magit-shell-command-verbose-prompt
                            (format "Async shell command in %s: "
                                    (abbreviate-file-name default-directory))
                          "Async shell command: ")
                        initial-input 'magit-git-command-history)))