Function: magit-refs--propertize-branch

magit-refs--propertize-branch is a byte-compiled function defined in magit-refs.el.

Signature

(magit-refs--propertize-branch BRANCH REF &optional HEAD-FACE)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-refs.el
(defun magit-refs--propertize-branch (branch ref &optional head-face)
  (let ((face (cdr (cl-find-if (pcase-lambda (`(,re . ,_))
                                 (string-match-p re ref))
                               magit-ref-namespaces))))
    (magit--propertize-face
     branch (if head-face (list face head-face) face))))