Variable: magit-diff-paint-whitespace
magit-diff-paint-whitespace is a customizable variable defined in
magit-diff.el.
Value
t
Documentation
Specify where to highlight whitespace errors.
nil Never highlight whitespace errors.
t Highlight whitespace errors everywhere.
uncommitted Only highlight whitespace errors in diffs
showing uncommitted changes.
For backward compatibility status is treated as a synonym
for uncommitted.
The option magit-diff-paint-whitespace-lines controls for
what lines (added/remove/context) errors are highlighted.
The options magit-diff-highlight-trailing and
magit-diff-highlight-indentation control what kind of
whitespace errors are highlighted.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-diff-paint-whitespace t
"Specify where to highlight whitespace errors.
`nil' Never highlight whitespace errors.
`t' Highlight whitespace errors everywhere.
`uncommitted' Only highlight whitespace errors in diffs
showing uncommitted changes.
For backward compatibility `status' is treated as a synonym
for `uncommitted'.
The option `magit-diff-paint-whitespace-lines' controls for
what lines (added/remove/context) errors are highlighted.
The options `magit-diff-highlight-trailing' and
`magit-diff-highlight-indentation' control what kind of
whitespace errors are highlighted."
:group 'magit-diff
:safe (##memq % '(t nil uncommitted status))
:type '(choice (const :tag "In all diffs" t)
(const :tag "Only in uncommitted changes" uncommitted)
(const :tag "Never" nil)))