Function: magit-call-process
magit-call-process is a byte-compiled function defined in
magit-process.el.
Signature
(magit-call-process PROGRAM &rest ARGS)
Documentation
Call PROGRAM synchronously in a separate process.
Process output goes into a new section in the buffer returned by
magit-process-buffer. Return the exit code.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-call-process (program &rest args)
"Call PROGRAM synchronously in a separate process.
Process output goes into a new section in the buffer returned by
`magit-process-buffer'. Return the exit code."
(pcase-let ((`(,process-buf . ,section)
(magit-process-setup program args)))
(magit-process-finish
(let ((inhibit-read-only t))
(apply #'magit-process-file program nil process-buf nil args))
process-buf (current-buffer) default-directory section)))