Function: magit--shell-command
magit--shell-command is a byte-compiled function defined in magit.el.
Signature
(magit--shell-command COMMAND &optional DIRECTORY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit.el
(defun magit--shell-command (command &optional directory)
(let ((default-directory (or directory default-directory)))
(with-environment-variables (("GIT_PAGER" "cat"))
(with-connection-local-variables
(magit-with-editor
(magit-start-process shell-file-name nil
shell-command-switch command)))))
(magit-process-buffer))