config: introduce git_parse_maybe_bool_text