Expand description
MG.21i: magit-submodule major mode.
Lists the configured submodules with git’s own status marker, the
recorded commit, and the path: a add, u update, s sync,
d remove (asks).
A buffer, and here magit agrees. Unlike remote management
(§4.6b, where we diverge), magit itself renders submodules as a
buffer — magit-list-submodules opens *Modules*. Its o
transient carries the operations; the list is a buffer in both.
So this is the UX-convention rule and paramount goal #3 pointing
the same way, and the shape is magit-remote-mode’s.
The one genuinely destructive row is d: removing a submodule
deletes its whole working tree, including anything uncommitted
inside it, and git keeps no copy. That is §12.13’s ask/execute
contract, unlike magit-remote-mode’s d, which is recoverable
and therefore does not ask.