Variable: magit-post-refresh-hook

magit-post-refresh-hook is a customizable variable defined in magit-mode.el.

Value

(magit-auto-revert-buffers
 magit-run-post-commit-hook
 magit-run-post-stage-hook
 magit-run-post-unstage-hook)

Documentation

Hook run after refreshing in magit-refresh.

This hook, or magit-pre-refresh-hook, should be used for functions that are not tied to a particular buffer.

To run a function with a particular buffer current, use magit-refresh-buffer-hook and use derived-mode-p inside your function.

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-mode.el
(defcustom magit-post-refresh-hook
  ;; Do not function-quote to avoid circular dependencies.
  ;; Functions added here have to be autoloaded.
  '(magit-auto-revert-buffers
    magit-run-post-commit-hook
    magit-run-post-stage-hook
    magit-run-post-unstage-hook)
  "Hook run after refreshing in `magit-refresh'.

This hook, or `magit-pre-refresh-hook', should be used
for functions that are not tied to a particular buffer.

To run a function with a particular buffer current, use
`magit-refresh-buffer-hook' and use `derived-mode-p'
inside your function."
  :package-version '(magit . "2.4.0")
  :group 'magit-refresh
  :type 'hook
  :options '(magit-auto-revert-buffers
             magit-run-post-commit-hook
             magit-run-post-stage-hook
             magit-run-post-unstage-hook))