Function: majutsu--process-insert-section
majutsu--process-insert-section is a natively compiled function
defined in majutsu-process.el.
Signature
(majutsu--process-insert-section PWD PROGRAM ARGS &optional ERRCODE ERRLOG FACE)
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-process.el
(defun majutsu--process-insert-section
(pwd program args &optional errcode errlog face)
(let ((inhibit-read-only t)
(magit-insert-section--current nil)
(magit-insert-section--parent magit-root-section)
(magit-insert-section--oldroot nil))
(goto-char (1- (point-max)))
(magit-insert-section (process)
(insert (if errcode
(format "%3s " (propertize (number-to-string errcode)
'font-lock-face 'magit-process-ng))
"run "))
(when majutsu-process-timestamp-format
(insert (format-time-string majutsu-process-timestamp-format) " "))
(let ((cmd (majutsu--process--format-arguments program args pwd)))
(magit-insert-heading
(if face
(propertize cmd 'face face)
cmd)))
(when errlog
(if (bufferp errlog)
(insert (with-current-buffer errlog
(buffer-substring-no-properties (point-min) (point-max))))
(insert-file-contents errlog)
(goto-char (1- (point-max)))))
(insert "\n"))))