Skip to main content

get_config_rotation

Function get_config_rotation 

Source
pub fn get_config_rotation(store: &dyn Vcs) -> Result<Option<RotationOption>>
Expand description

Get the rotation configuration setting

Returns None when rotation is not configured (rotation is off). Returns Some(RotationOption::RoundRobin) when round-robin rotation is enabled.

ยงErrors

Returns an error if reading the git config fails, or if the stored value cannot be parsed as a valid rotation option.