Function: magit-split-branch-name
magit-split-branch-name is a byte-compiled function defined in
magit-git.el.
Signature
(magit-split-branch-name BRANCH)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-split-branch-name (branch)
(cond ((member branch (magit-list-local-branch-names))
(cons "." branch))
((string-match "/" branch)
(or (seq-some (lambda (remote)
(and (string-match
(format "\\`\\(%s\\)/\\(.+\\)\\'" remote)
branch)
(cons (match-str 1 branch)
(match-str 2 branch))))
(magit-list-remotes))
(error "Invalid branch name %s" branch)))))