Variable: magit-ref-namespaces

magit-ref-namespaces is a variable defined in magit-git.el.

Value

(("\\`HEAD\\'" . magit-head)
 ("\\`refs/tags/\\(.+\\)" . magit-tag)
 ("\\`refs/heads/\\(.+\\)" . magit-branch-local)
 ("\\`refs/remotes/\\(.+\\)" . magit-branch-remote)
 ("\\`refs/bisect/\\(bad\\)" . magit-bisect-bad)
 ("\\`refs/bisect/\\(skip.*\\)" . magit-bisect-skip)
 ("\\`refs/bisect/\\(good.*\\)" . magit-bisect-good)
 ("\\`refs/stash$" . magit-refname-stash)
 ("\\`refs/wip/\\(.+\\)" . magit-refname-wip)
 ("\\`refs/pullreqs/\\(.+\\)" . magit-refname-pullreq)
 ("\\`\\(bad\\):" . magit-bisect-bad)
 ("\\`\\(skip\\):" . magit-bisect-skip)
 ("\\`\\(good\\):" . magit-bisect-good)
 ("\\`\\(.+\\)" . magit-refname))

Documentation

How refs are formatted for display.

Each entry controls how a certain type of ref is displayed, and has the form (REGEXP . FACE). REGEXP is a regular expression used to match full refs. The first entry whose REGEXP matches the reference is used.

In log and revision buffers the first regexp submatch becomes the
"label" that represents the ref and is propertized with FONT.
In refs buffers the displayed text is controlled by other means and this option only controls what face is used.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defvar magit-ref-namespaces
  '(("\\`HEAD\\'"                  . magit-head)
    ("\\`refs/tags/\\(.+\\)"       . magit-tag)
    ("\\`refs/heads/\\(.+\\)"      . magit-branch-local)
    ("\\`refs/remotes/\\(.+\\)"    . magit-branch-remote)
    ("\\`refs/bisect/\\(bad\\)"    . magit-bisect-bad)
    ("\\`refs/bisect/\\(skip.*\\)" . magit-bisect-skip)
    ("\\`refs/bisect/\\(good.*\\)" . magit-bisect-good)
    ("\\`refs/stash$"              . magit-refname-stash)
    ("\\`refs/wip/\\(.+\\)"        . magit-refname-wip)
    ("\\`refs/pullreqs/\\(.+\\)"   . magit-refname-pullreq)
    ("\\`\\(bad\\):"               . magit-bisect-bad)
    ("\\`\\(skip\\):"              . magit-bisect-skip)
    ("\\`\\(good\\):"              . magit-bisect-good)
    ("\\`\\(.+\\)"                 . magit-refname))
  "How refs are formatted for display.

Each entry controls how a certain type of ref is displayed, and
has the form (REGEXP . FACE).  REGEXP is a regular expression
used to match full refs.  The first entry whose REGEXP matches
the reference is used.

In log and revision buffers the first regexp submatch becomes the
\"label\" that represents the ref and is propertized with FONT.
In refs buffers the displayed text is controlled by other means
and this option only controls what face is used.")