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

Function object_common

json-writer.c:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static void object_common(struct json_writer *jw, const char *key)
115{
116 assert_in_object(jw, key);
117 maybe_add_comma(jw);
118
119 if (jw->pretty) {
120 strbuf_addch(&jw->json, '\n');
121 indent_pretty(jw);
122 }
123
124 append_quoted_string(&jw->json, key);
125 strbuf_addch(&jw->json, ':');
126 if (jw->pretty)
127 strbuf_addch(&jw->json, ' ');
128}
129
130static void array_common(struct json_writer *jw)
131{

Callers 9

jw_object_stringFunction · 0.85
jw_object_intmaxFunction · 0.85
jw_object_doubleFunction · 0.85
jw_object_trueFunction · 0.85
jw_object_falseFunction · 0.85
jw_object_nullFunction · 0.85
jw_object_sub_jwFunction · 0.85

Calls 5

assert_in_objectFunction · 0.85
maybe_add_commaFunction · 0.85
strbuf_addchFunction · 0.85
indent_prettyFunction · 0.85
append_quoted_stringFunction · 0.85

Tested by

no test coverage detected