Skip to main content

status_action_handlers

Function status_action_handlers 

Source
pub fn status_action_handlers() -> Vec<ActionHandlerContribution>
Expand description

MG.13: magit-status’s action handlers, registered once at boot by MagitStatusMode::action_handlers().

Each body opens with let s = status_state(ctx)?; — resolving this buffer’s state from the BufferStates<StatusBufferState> service rather than closing over it at activation. That removes the window in which x / = / <CR> resolved but had no handler yet. s, u and gr are NOT here: they are shared with magit-diff-mode, so magit-core-mode owns their single handler and reaches this buffer through StatusView (see buffer_state::MagitView).