Skip to main content

Module transients

Module transients 

Source
Expand description

MG.8: magit transient menu definitions.

Defines the TransientSpec instances for the repo-level dispatch (C-c g) and file-level dispatch (C-c f) menus. Each is a grouped action menu rendered by the PICK.1 transient picker overlay.

Structs§

DispatchActionIds
The action:magit-global-* CommandIds dispatch_transient’s items fire, resolved once at install() time (all the names it needs are registered earlier in the same call, by register_action_commands) and captured by the TransientSourceRegistry builder closure — the registry’s builders take only a [TransientContext], so capture is how a boot-time-resolved id reaches a spec built long after boot, possibly many times (once per C-c g press).
DispatchGates
The mid-flight git operations the menu gates rows on.
FileDispatchActionIds
The action:magit-global-file-* CommandIds file_dispatch_transient’s items fire — resolved once at install() time, same shape as DispatchActionIds.
MagitActionIds
MG.41a: every registered magit action, keyed by its registered name.
RootMenu
dispatch_transient with the gates supplied rather than probed — pure, and the form every guard over this menu uses. MG.49: one root menu — reachable from the dispatch and from its own chord.
TransientRow
MG.41a: one transient row, as data.

Constants§

ROOT_MENUS
The seventeen root menus, in dispatch order.

Functions§

dispatch_transient
Build the repo-level dispatch transient (C-c g).
dispatch_transient_with
file_dispatch_transient
other_file_dispatch_transient
Build the file-level dispatch transient (C-c f).
root_menu_spec
Build one root menu by name — the SAME spec the dispatch nests, so a chord and the menu path to it can never disagree.
view_arguments_transient
MG.21g: the B bisect submenu, gated on whether a bisect is running.