Variable: magit-diff-expansion-threshold

magit-diff-expansion-threshold is a customizable variable defined in magit-diff.el.

Value

60

Documentation

After how many seconds not to expand anymore diffs.

Except in status buffers, diffs usually start out fully expanded. Because that can take a long time, all diffs that haven't been fontified during a refresh before the threshold defined here are instead displayed with their bodies collapsed.

Note that this can cause sections that were previously expanded to be collapsed. So you should not pick a very low value here.

The hook function magit-diff-expansion-threshold(var)/magit-diff-expansion-threshold(fun) has to be a member of magit-section-set-visibility-hook for this option to have any effect.

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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-diff-expansion-threshold 60
  "After how many seconds not to expand anymore diffs.

Except in status buffers, diffs usually start out fully expanded.
Because that can take a long time, all diffs that haven't been
fontified during a refresh before the threshold defined here are
instead displayed with their bodies collapsed.

Note that this can cause sections that were previously expanded
to be collapsed.  So you should not pick a very low value here.

The hook function `magit-diff-expansion-threshold' has to be a
member of `magit-section-set-visibility-hook' for this option
to have any effect."
  :package-version '(magit . "2.9.0")
  :group 'magit-diff
  :type 'float)