Function: forge--pullreq-branch-internal

forge--pullreq-branch-internal is a byte-compiled function defined in forge-pullreq.el.

Signature

(forge--pullreq-branch-internal PULLREQ)

Source Code

;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-pullreq.el
;;; Utilities

(defun forge--pullreq-branch-internal (pullreq)
  (let ((branch (oref pullreq head-ref)))
    ;; It is invalid for a branch name to begin with a colon, yet
    ;; that is what Gitlab uses when a pull-request's source branch
    ;; has been deleted.  On Github this is simply nil in the same
    ;; situation.
    (and branch (not (string-prefix-p ":" branch)) branch)))