MCPcopy Create free account
hub / github.com/git/git / array_common

Function array_common

json-writer.c:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static void array_common(struct json_writer *jw)
131{
132 assert_in_array(jw);
133 maybe_add_comma(jw);
134
135 if (jw->pretty) {
136 strbuf_addch(&jw->json, '\n');
137 indent_pretty(jw);
138 }
139}
140
141/*
142 * Assert that the given JSON object or JSON array has been properly

Callers 9

jw_array_stringFunction · 0.85
jw_array_intmaxFunction · 0.85
jw_array_doubleFunction · 0.85
jw_array_trueFunction · 0.85
jw_array_falseFunction · 0.85
jw_array_nullFunction · 0.85
jw_array_sub_jwFunction · 0.85

Calls 4

assert_in_arrayFunction · 0.85
maybe_add_commaFunction · 0.85
strbuf_addchFunction · 0.85
indent_prettyFunction · 0.85

Tested by

no test coverage detected