Function: magit-insert-cherry-headers

magit-insert-cherry-headers is a byte-compiled function defined in magit-log.el.

Signature

(magit-insert-cherry-headers)

Documentation

Insert headers appropriate for magit-cherry-mode buffers.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
(defun magit-insert-cherry-headers ()
  "Insert headers appropriate for `magit-cherry-mode' buffers."
  (let ((branch (propertize magit-buffer-refname
                            'font-lock-face 'magit-branch-local))
        (upstream (propertize
                   magit-buffer-cherry-upstream 'font-lock-face
                   (if (magit-local-branch-p magit-buffer-cherry-upstream)
                       'magit-branch-local
                     'magit-branch-remote))))
    (magit-insert-head-branch-header branch)
    (magit-insert-upstream-branch-header branch upstream "Upstream: ")
    (insert ?\n)))