Function: magit-insert-push-branch-header
magit-insert-push-branch-header is a byte-compiled function defined in
magit-status.el.
Signature
(magit-insert-push-branch-header)
Documentation
Insert a header line about the branch the current branch is pushed to.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-status.el
(defun magit-insert-push-branch-header ()
"Insert a header line about the branch the current branch is pushed to."
(when-let* ((branch (magit-get-current-branch))
(target (magit-get-push-branch branch)))
(magit-insert-section (branch target)
(insert (format "%-10s" "Push: "))
(insert
(cond-let
((magit-rev-verify target)
(concat (and magit-status-show-hashes-in-headers
(concat (propertize (magit-rev-format "%h" target)
'font-lock-face 'magit-hash)
" "))
target " "
(magit-log--wash-summary
(or (magit-rev-format "%s" target)
"(no commit message)"))))
[[remote (magit-get-push-remote branch)]]
((magit-remote-p remote)
(concat target " "
(propertize "does not exist"
'font-lock-face 'magit-branch-warning)))
((concat remote " "
(propertize "remote does not exist"
'font-lock-face 'magit-branch-warning)))))
(insert ?\n))))