[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/magit fed387282a 12/28: magit-submodule-populate: Support
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/magit fed387282a 12/28: magit-submodule-populate: Support --recursive |
Date: |
Fri, 6 Dec 2024 17:17:03 -0500 (EST) |
branch: elpa/magit
commit fed387282a660debcd57fabf89e1fb6a312797a6
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-submodule-populate: Support --recursive
Closes #5191.
Closes #5256.
---
lisp/magit-submodule.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-submodule.el b/lisp/magit-submodule.el
index 0a4e70880e..a42d1bc698 100644
--- a/lisp/magit-submodule.el
+++ b/lisp/magit-submodule.el
@@ -285,7 +285,7 @@ single module from the user."
(magit-run-git-async "submodule" "init" "--" modules)))
;;;###autoload (autoload 'magit-submodule-populate "magit-submodule" nil t)
-(transient-define-suffix magit-submodule-populate (modules)
+(transient-define-suffix magit-submodule-populate (modules args)
"Create MODULES working directories, checking out the recorded commits.
With a prefix argument act on all suitable modules. Otherwise,
@@ -295,11 +295,13 @@ single module from the user."
;; This is the command that actually "initializes" modules.
;; A module is initialized when it has a working directory,
;; a gitlink, and a .gitmodules entry.
- :description "Populate git submodule update --init"
+ :class 'magit--git-submodule-suffix
+ :description "Populate git submodule update --init [--recursive]"
(interactive
- (list (magit-module-confirm "Populate" 'magit-module-no-worktree-p)))
+ (list (magit-module-confirm "Populate" 'magit-module-no-worktree-p)
+ (magit-submodule-arguments "--recursive")))
(magit-with-toplevel
- (magit-run-git-async "submodule" "update" "--init" "--" modules)))
+ (magit-run-git-async "submodule" "update" "--init" args "--" modules)))
;;;###autoload (autoload 'magit-submodule-update "magit-submodule" nil t)
(transient-define-suffix magit-submodule-update (modules args)
- [nongnu] elpa/magit 76253bda0d 08/28: magit--git-wash-keep-error: Enable by default, (continued)
- [nongnu] elpa/magit 76253bda0d 08/28: magit--git-wash-keep-error: Enable by default, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 8a6ca692fe 14/28: magit-process-password-prompt-regexps: Add another user@host lookup, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 7adad8c8d3 28/28: Release version 4.1.3, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit cea06e4d4e 27/28: Bump dependencies, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit e52dedf07f 22/28: magit-stash-{pop, apply}: Stop after successfully installing conflict, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 8cee789f7a 10/28: magit-anything-staged-p: Extend comment about Git v2.46.{0, 1} bugs, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 70aa9eeee0 20/28: Update changelog, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit a98ebd273f 13/28: magit-process-password-auth-source: Trim docstring, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 46824fb4c1 24/28: Fix typos in changelog, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 089f130f73 11/28: ci: Generate statistics weekly, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit fed387282a 12/28: magit-submodule-populate: Support --recursive,
Jonas Bernoulli <=
- [nongnu] elpa/magit 3deaad3d29 16/28: Use mapcan instead of cl-mapcan, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit e8b85e43d4 23/28: magit-stash-push: Move "--" after other arguments, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 908de59440 26/28: Update changelog, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 961b966f9a 25/28: Require magit-process for the benefit of magit-auto-revert-mode, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 621b67fc7e 15/28: magit-list-special-refnames: Cosmetics, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 93a7752842 17/28: magit-bookmark-name: Cosmetics, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 1e17181a21 19/28: Regenerate texi manual, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 98667fa8b2 21/28: magit-stash-{pop, apply}: Copy edit documentation, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 1c30bb1f9f 03/28: Use transient-scope, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 49c096722d 18/28: magit-insert-untracked-files: Improve docs, Jonas Bernoulli, 2024/12/06