Skip to main content

in_segment_scope

Function in_segment_scope 

Source
pub fn in_segment_scope<T>(
    command: &str,
    per_segment: impl FnMut(usize, &str) -> T,
) -> Option<Vec<T>>
Expand description

Runs per_segment on each segment of command (its index and text) with the scope the segments before it leave in force: their cd, their VAR= bindings and their function definitions.

A segment’s fix has to be worked out there. Alone, git -C $M status names no place, and every grant asked about it fails, so M=/elsewhere; git -C $M status was told nothing in safe-chains’ config would help, though a grant on /elsewhere approves it. None when command does not parse.