Function: magit-list-remote-branch-names

magit-list-remote-branch-names is a natively compiled function defined in magit-git.el.

Signature

(magit-list-remote-branch-names &optional REMOTE RELATIVE)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-git.el
(defun magit-list-remote-branch-names (&optional remote relative)
  (if (and remote relative)
      (let ((regexp (format "^refs/remotes/%s/\\(.+\\)" remote)))
        (seq-keep (##and (string-match regexp %)
                         (match-str 1 %))
                  (magit-list-remote-branches remote)))
    (magit-list-refnames (concat "refs/remotes/" remote))))