emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]