Function git_config::parse::key

source ·
pub fn key<'a>(input: impl Into<&'a BStr>) -> Option<Key<'a>>
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.