feat: add magit-submodule-update-all suffix
This commit is contained in:
parent
a4f7828259
commit
54491b0c06
1 changed files with 12 additions and 0 deletions
12
config.org
12
config.org
|
|
@ -1116,8 +1116,20 @@ TODO: need to document this
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package magit
|
(use-package magit
|
||||||
|
:ensure t
|
||||||
:bind
|
:bind
|
||||||
("C-c m" . magit-status)
|
("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
|
#+END_SRC
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue