Variable: magit-auto-revert-immediately

magit-auto-revert-immediately is a customizable variable defined in magit-autorevert.el.

Value

t

Documentation

Whether Magit reverts buffers immediately.

If this is non-nil and either global-auto-revert-mode(var)/global-auto-revert-mode(fun) or magit-auto-revert-mode(var)/magit-auto-revert-mode(fun) is enabled, then Magit immediately reverts buffers by explicitly calling auto-revert-buffers after running Git for side-effects.

If auto-revert-use-notify is non-nil (and file notifications are actually supported), then magit-auto-revert-immediately does not have to be non-nil, because the reverts happen immediately anyway.

If magit-auto-revert-immediately and auto-revert-use-notify are both nil, then reverts happen after auto-revert-interval seconds of user inactivity. That is not desirable.

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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-autorevert.el
(defcustom magit-auto-revert-immediately t
  "Whether Magit reverts buffers immediately.

If this is non-nil and either `global-auto-revert-mode' or
`magit-auto-revert-mode' is enabled, then Magit immediately
reverts buffers by explicitly calling `auto-revert-buffers'
after running Git for side-effects.

If `auto-revert-use-notify' is non-nil (and file notifications
are actually supported), then `magit-auto-revert-immediately'
does not have to be non-nil, because the reverts happen
immediately anyway.

If `magit-auto-revert-immediately' and `auto-revert-use-notify'
are both nil, then reverts happen after `auto-revert-interval'
seconds of user inactivity.  That is not desirable."
  :package-version '(magit . "2.4.0")
  :group 'magit-auto-revert
  :type 'boolean)