Variable: magit-diff-highlight-indentation

magit-diff-highlight-indentation is a customizable variable defined in magit-diff.el.

Value

nil

Documentation

Highlight the "wrong" indentation style.

Used only when magit-diff-paint-whitespace(var)/magit-diff-paint-whitespace(fun) is non-nil.

The value is an alist of the form ((REGEXP . INDENT)...). The path to the current repository is matched against each element in reverse order. Therefore if a REGEXP matches, then earlier elements are not tried.

If the used INDENT is tabs, highlight indentation with tabs. If INDENT is an integer, highlight indentation with at least that many spaces. Otherwise, highlight neither.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-diff-highlight-indentation nil
  "Highlight the \"wrong\" indentation style.
Used only when `magit-diff-paint-whitespace' is non-nil.

The value is an alist of the form ((REGEXP . INDENT)...).  The
path to the current repository is matched against each element
in reverse order.  Therefore if a REGEXP matches, then earlier
elements are not tried.

If the used INDENT is `tabs', highlight indentation with tabs.
If INDENT is an integer, highlight indentation with at least
that many spaces.  Otherwise, highlight neither."
  :group 'magit-diff
  :type `(alist :key-type (regexp :tag "Directory regexp")
                :value-type (choice (const :tag "Tabs" tabs)
                                    (natnum :tag "Spaces" :value ,tab-width)
                                    (const :tag "Neither" nil))))