MCPcopy Index your code
hub / github.com/git/git / get_base_var

Function get_base_var

config.c:983–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983static int get_base_var(struct config_source *cs, struct strbuf *name)
984{
985 cs->subsection_case_sensitive = 1;
986 for (;;) {
987 int c = get_next_char(cs);
988 if (cs->eof)
989 return -1;
990 if (c == ']')
991 return 0;
992 if (isspace(c))
993 return get_extended_base_var(cs, name, c);
994 if (!iskeychar(c) && c != '.')
995 return -1;
996 strbuf_addch(name, tolower(c));
997 }
998}
999
1000struct parse_event_data {
1001 enum config_event_t previous_type;

Callers 1

git_parse_sourceFunction · 0.85

Calls 4

get_next_charFunction · 0.85
get_extended_base_varFunction · 0.85
iskeycharFunction · 0.85
strbuf_addchFunction · 0.85

Tested by

no test coverage detected