Variable: magit-list-refs-namespaces

magit-list-refs-namespaces is a customizable variable defined in magit-git.el.

Value

("refs/heads" "refs/remotes" "refs/tags")

Documentation

List of ref namespaces considered when reading a ref.

This controls which refs are returned by magit-list-refs, which is called by functions like magit-list-branch-names to generate the collection of refs. Additionally namespaces appear in the same order as specified here.

This variable was added, or its default value changed, in magit version 4.4.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defcustom magit-list-refs-namespaces
  '("refs/heads"
    "refs/remotes"
    "refs/tags")
  "List of ref namespaces considered when reading a ref.

This controls which refs are returned by `magit-list-refs', which
is called by functions like `magit-list-branch-names' to generate
the collection of refs.  Additionally namespaces appear in the same
order as specified here."
  :package-version '(magit . "4.4.0")
  :group 'magit-commands
  :type '(repeat string))