[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit ec64fa4d63 06/13: magit-refresh: No longer hard
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit ec64fa4d63 06/13: magit-refresh: No longer hardcode magit-auto-revert-buffers |
Date: |
Fri, 6 May 2022 15:58:12 -0400 (EDT) |
branch: elpa/git-commit
commit ec64fa4d631b15d2e1829c677653e71a9615d55e
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-refresh: No longer hardcode magit-auto-revert-buffers
This helps avoiding circular dependencies.
---
lisp/magit-mode.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index e33d459832..4b59e291b8 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -91,7 +91,8 @@ inside your function."
:options '(magit-maybe-save-repository-buffers))
(defcustom magit-post-refresh-hook
- '(magit-run-post-commit-hook
+ '(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'.
@@ -105,7 +106,8 @@ inside your function."
:package-version '(magit . "2.4.0")
:group 'magit-refresh
:type 'hook
- :options '(magit-run-post-commit-hook
+ :options '(magit-auto-revert-buffers
+ magit-run-post-commit-hook
magit-run-post-stage-hook
magit-run-post-unstage-hook))
@@ -1050,7 +1052,6 @@ Run hooks `magit-pre-refresh-hook' and
`magit-post-refresh-hook'."
(magit-get-mode-buffer 'magit-status-mode))
(with-current-buffer it
(magit-refresh-buffer)))
- (magit-auto-revert-buffers)
(magit-run-hook-with-benchmark 'magit-post-refresh-hook)
(when magit-refresh-verbose
(let* ((c (caar magit--refresh-cache))
@@ -1072,7 +1073,6 @@ Run hooks `magit-pre-refresh-hook' and
`magit-post-refresh-hook'."
(magit-run-hook-with-benchmark 'magit-pre-refresh-hook)
(dolist (buffer (magit-mode-get-buffers))
(with-current-buffer buffer (magit-refresh-buffer)))
- (magit-auto-revert-buffers)
(magit-run-hook-with-benchmark 'magit-post-refresh-hook))
(defvar-local magit-refresh-start-time nil)
- [nongnu] elpa/git-commit updated (ea1d09e0a7 -> 6c98ba3dac), ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit d176c2a278 01/13: magit-custom-initialize-reset: Improve docstring, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit ec64fa4d63 06/13: magit-refresh: No longer hardcode magit-auto-revert-buffers,
ELPA Syncer <=
- [nongnu] elpa/git-commit 2d679dff02 10/13: Move definition of magit-tramp-process-environment, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit e35f2b9be7 09/13: magit-blame.el: Move internal variables to beginning of file, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 42a954adb4 03/13: Remove unnecessary variable declaration, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit ce29c373b9 08/13: magit-section.el: Move internal variables to beginning of file, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 632536ca9c 07/13: Add magit-status-goto-initial-section to magit-create-buffer-hook, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit cc07643bb1 12/13: Use fboundp instead of declare-function for magit-blame functions, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 6c98ba3dac 13/13: Use fboundp instead of requiring magit-wip, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 16aa4340c8 02/13: Add missing section headings, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit 85e169736e 05/13: magit-refresh: No longer hardcode dedicated post-command hooks, ELPA Syncer, 2022/05/06
- [nongnu] elpa/git-commit c3268fc69d 04/13: git-commit.el: Rearrange dependencies, ELPA Syncer, 2022/05/06