[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 6014320c3e 10/12: magit-module-confirm: Use ref
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 6014320c3e 10/12: magit-module-confirm: Use refresh cache |
Date: |
Sun, 6 Aug 2023 21:59:41 -0400 (EDT) |
branch: elpa/git-commit
commit 6014320c3e677ed363a01a6c6730436da63fc500
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-module-confirm: Use refresh cache
Some predicates use the inefficient `magit-toplevel' and some
repositories have thousands of submodules (e.g., the Emacsmirror's
epkgs repository).
---
lisp/magit-git.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index aeb8e394e6..d9b73d3b4e 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2809,7 +2809,10 @@ out. Only existing branches can be selected."
(magit-module-at-point predicate)))
(defun magit-module-confirm (verb &optional predicate)
- (let (modules)
+ ;; Some predicates use the inefficient `magit-toplevel'
+ ;; and some repositories have thousands of submodules.
+ (let ((magit--refresh-cache (list (cons 0 0)))
+ (modules nil))
(if current-prefix-arg
(progn
(setq modules (magit-list-module-paths))
- [nongnu] elpa/git-commit updated (dd6ecd5fe5 -> e7ff79dcf1), ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit d536ef9e21 06/12: Don't preserve visibility in log buffers, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit 8cff832f37 01/12: Fix typo, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit e32cec06a4 08/12: magit-log-show-signatures-limit: New option, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit daed531696 03/12: magit-insert-section: Cosmetics, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit 241b327b7a 05/12: Don't use markers in log buffers, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit 4012494f30 04/12: magit-insert-section: More cosmetics, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit d73a3b11db 09/12: Record child sections in reverse in log buffers, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit 49f20e7ca4 11/12: log: Drop extra word from -n limit messages, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit 6014320c3e 10/12: magit-module-confirm: Use refresh cache,
ELPA Syncer <=
- [nongnu] elpa/git-commit e7ff79dcf1 12/12: magit-log-color-graph-limit: Drop stray words from docstring, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit 545a64c3ee 07/12: magit-log-color-graph-limit: New option, ELPA Syncer, 2023/08/06
- [nongnu] elpa/git-commit b3f7e24616 02/12: magit-map-sections: New function, ELPA Syncer, 2023/08/06