Function: magit--shell-command
magit--shell-command is a natively compiled function defined in
magit.el.
Signature
(magit--shell-command COMMAND &optional DIRECTORY)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))