Function: magit-get-push-branch

magit-get-push-branch is a byte-compiled function defined in magit-git.el.

Signature

(magit-get-push-branch &optional BRANCH VERIFY)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-get-push-branch (&optional branch verify)
  (magit--with-refresh-cache
      (list default-directory 'magit-get-push-branch branch verify)
    (and-let*
        ((branch (magit-ref-abbrev (or branch (magit-get-current-branch))))
         (remote (magit-get-push-remote branch))
         (target (concat remote "/" branch)))
      (and (or (not verify)
               (magit-rev-verify target))
           (magit--propertize-face target 'magit-branch-remote)))))