Function: magit-remote-branch-p

magit-remote-branch-p is a byte-compiled function defined in magit-git.el.

Signature

(magit-remote-branch-p STRING)

Documentation

Return t if STRING is a remote-tracking branch, nil otherwise.

Signal an error if STRING is not a string.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-git.el
(defun magit-remote-branch-p (string)
  "Return t if STRING is a remote-tracking branch, nil otherwise.
Signal an error if STRING is not a string."
  (cl-assert (stringp string))
  (seq-some (lambda (line)
              (let ((ref (cadr (split-string line " "))))
                (or (equal string ref)
                    (equal string (substring ref 5))
                    (equal string (substring ref 13)))))
            (magit-git-lines "show-ref" string)))