Codebase list magit / bb3401e
magit-refresh-all: run magit-{pre,post}-refresh-hook Jonas Bernoulli 8 years ago
2 changed file(s) with 14 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
3838 Setting the new option `magit-unstage-committed' to nil, disables
3939 this behavior. Attempting to unstage a committed change would then
4040 result in an error again.
41
42 * Like `magit-refresh' already did, `magit-refresh-all' now runs the
43 hooks `magit-pre-refresh-hook' and `magit-post-refresh-hook'.
4144
4245 * The heading of the section which lists commits that exist in the
4346 current branch but not in its upstream was changed from "Unpushed
684684 "Refresh some buffers belonging to the current repository.
685685
686686 Refresh the current buffer if its major mode derives from
687 `magit-mode', and refresh the corresponding status buffer."
687 `magit-mode', and refresh the corresponding status buffer.
688
689 Run hooks `magit-pre-refresh-hook' and `magit-post-refresh-hook'."
688690 (interactive)
689691 (unless inhibit-magit-refresh
690692 (magit-run-hook-with-benchmark 'magit-pre-refresh-hook)
701703 (defun magit-refresh-all ()
702704 "Refresh all buffers belonging to the current repository.
703705
704 Refresh all Magit buffers belonging to the current repository.
705
706 Also always revert all unmodified buffers that visit files being
707 tracked in the current repository."
706 Refresh all Magit buffers belonging to the current repository,
707 and revert buffers that visit files located inside the current
708 repository.
709
710 Run hooks `magit-pre-refresh-hook' and `magit-post-refresh-hook'."
708711 (interactive)
712 (magit-run-hook-with-benchmark 'magit-pre-refresh-hook)
709713 (dolist (buffer (magit-mode-get-buffers))
710714 (with-current-buffer buffer (magit-refresh-buffer)))
711 (magit-auto-revert-buffers))
715 (magit-auto-revert-buffers)
716 (magit-run-hook-with-benchmark 'magit-post-refresh-hook))
712717
713718 (defvar-local magit-refresh-start-time nil)
714719