Function: magit-diff-expansion-threshold

magit-diff-expansion-threshold is a natively compiled function defined in magit-diff.el.

Signature

(magit-diff-expansion-threshold SECTION)

Documentation

Keep new diff sections collapsed if washing takes too long.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-diff.el
(defun magit-diff-expansion-threshold (section)
  "Keep new diff sections collapsed if washing takes too long."
  (and (magit-file-section-p section)
       (> (float-time (time-since magit--refresh-start-time))
          magit-diff-expansion-threshold)
       'hide))