Function: magit-process-error-summary

magit-process-error-summary is a byte-compiled function defined in magit-process.el.

Signature

(magit-process-error-summary PROCESS-BUF SECTION)

Documentation

Return one-line error summary from SECTION in PROCESS-BUF.

If PROCESS-BUF is no longer alive, return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-process.el
(defun magit-process-error-summary (process-buf section)
  "Return one-line error summary from SECTION in PROCESS-BUF.
If PROCESS-BUF is no longer alive, return nil."
  (and (buffer-live-p process-buf)
       (with-current-buffer process-buf
         (and (oref section content)
              (save-excursion
                (goto-char (oref section end))
                (run-hook-wrapped
                 'magit-process-error-message-regexps
                 (lambda (re)
                   (save-excursion
                     (and (re-search-backward re (oref section start) t)
                          (match-str 1))))))))))