Variable: magit-revision-insert-related-refs-display-alist

magit-revision-insert-related-refs-display-alist is a customizable variable defined in magit-diff.el.

Value

nil

Documentation

How magit-insert-revision-headers displays related branch types.

This is an alist, with recognised keys being the symbols parents, merged, contained, follows, and precedes; and the supported values for each key being:

nil Hide these related branches.
t Show these related branches.

Keys which are not present in the alist have an implicit value t
(so the default alist value of nil means all related branch types
will be shown.)

The types to be shown are additionally subject to user option magit-revision-insert-related-refs.

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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-revision-insert-related-refs-display-alist nil
  "How `magit-insert-revision-headers' displays related branch types.

This is an alist, with recognised keys being the symbols
`parents', `merged', `contained', `follows', and `precedes';
and the supported values for each key being:

`nil'   Hide these related branches.
`t'     Show these related branches.

Keys which are not present in the alist have an implicit value `t'
\(so the default alist value of `nil' means all related branch types
will be shown.)

The types to be shown are additionally subject to user option
`magit-revision-insert-related-refs'."
  :package-version '(magit . "3.3.1")
  :group 'magit-revision
  :type '(alist :key-type (symbol :tag "Type of related branch")
                :value-type (boolean :tag "Display"))
  :options (mapcar (lambda (sym)
                     `(,sym (choice (const :tag "Hide" nil)
                                    (const :tag "Show" t))))
                   '(parents merged contained follows precedes)))