Function: magit-process-sentinel
magit-process-sentinel is a byte-compiled function defined in
magit-process.el.
Signature
(magit-process-sentinel PROCESS EVENT)
Documentation
Default sentinel used by magit-start-process.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-process-sentinel (process event)
"Default sentinel used by `magit-start-process'."
(when (memq (process-status process) '(exit signal))
(setq event (substring event 0 -1))
(when (string-match "^finished" event)
(message (concat (capitalize (process-name process)) " finished")))
(magit-process-finish process)
(when (eq process magit-this-process)
(setq magit-this-process nil))
(unless (process-get process 'inhibit-refresh)
(let ((command-buf (process-get process 'command-buf)))
(if (buffer-live-p command-buf)
(with-current-buffer command-buf
(magit-refresh))
(with-temp-buffer
(setq default-directory (process-get process 'default-dir))
(magit-refresh)))))))