From 54491b0c0604caf4fb7f193125701d80eae88ca3 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Sun, 11 Jun 2023 14:31:26 +0200 Subject: [PATCH] feat: add magit-submodule-update-all suffix --- config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.org b/config.org index ff84122..a60ded1 100644 --- a/config.org +++ b/config.org @@ -1116,8 +1116,20 @@ TODO: need to document this #+BEGIN_SRC emacs-lisp (use-package magit + :ensure t :bind ("C-c m" . magit-status) + :config + (transient-define-suffix magit-submodule-update-all () + "Update all submodules" + :description "Update All git submodule update --init --recursive" + (interactive) + (magit-with-toplevel + (magit-run-git-async "submodule" "update" "--force"))) + + (transient-append-suffix 'magit-submodule "f" + '("U" magit-submodule-update-all)) + ) #+END_SRC