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

Function handle_header

mailinfo.c:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211static void handle_header(struct strbuf **out, const struct strbuf *line)
212{
213 if (!*out) {
214 *out = xmalloc(sizeof(struct strbuf));
215 strbuf_init(*out, line->len);
216 } else
217 strbuf_reset(*out);
218
219 strbuf_addbuf(*out, line);
220}
221
222/* NOTE NOTE NOTE. We do not claim we do full MIME. We just attempt
223 * to have enough heuristics to grok MIME encoded patches often found

Callers 2

check_headerFunction · 0.70
check_inbody_headerFunction · 0.70

Calls 3

strbuf_initFunction · 0.85
strbuf_addbufFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected