Function: magit-refresh-all
magit-refresh-all is an interactive and natively compiled function
defined in magit-mode.el.
Signature
(magit-refresh-all)
Documentation
Refresh all buffers belonging to the current repository.
Refresh all Magit buffers belonging to the current repository, and revert buffers that visit files located inside the current repository.
Run hooks magit-pre-refresh-hook and magit-post-refresh-hook.
Key Bindings
magit-mode-map G
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-mode.el
(defun magit-refresh-all ()
"Refresh all buffers belonging to the current repository.
Refresh all Magit buffers belonging to the current repository,
and revert buffers that visit files located inside the current
repository.
Run hooks `magit-pre-refresh-hook' and `magit-post-refresh-hook'."
(interactive)
(magit-run-hook-with-benchmark 'magit-pre-refresh-hook)
(dolist (buffer (magit-mode-get-buffers))
(with-current-buffer buffer (magit-refresh-buffer)))
(magit-run-hook-with-benchmark 'magit-post-refresh-hook))