pub fn parse_bool(s: &str) -> Result<bool, String>Expand description
Parse a Git boolean value.
Accepts: true, yes, on, 1 as true.
Accepts: false, no, off, 0 as false.
Note: bare config keys are represented as None in ConfigEntry and
are normalized to "true" by higher-level readers (ConfigSet::get).
An explicit empty assignment (key = with no value) is stored as "" and
is treated as false for --bool / parse_bool. Bare keys are represented
as None and normalized to "true" by callers before reaching this parser.