Function gix_config::parse::key
source · pub fn key(input: &BStr) -> Option<Key<'_>>
Expand description
Parse input
like core.bare
or remote.origin.url
as a Key
to make its fields available,
or None
if there were not at least 2 tokens separated by .
.
Note that input
isn’t validated, and is str
as ascii is a subset of UTF-8 which is required for any valid keys.