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

Function packet_fwrite_fmt

pkt-line.c:267–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void packet_fwrite_fmt(FILE *fh, const char *fmt, ...)
268{
269 static struct strbuf buf = STRBUF_INIT;
270 va_list args;
271
272 strbuf_reset(&buf);
273
274 va_start(args, fmt);
275 format_packet(&buf, "", fmt, args);
276 va_end(args);
277
278 fwrite_or_die(fh, buf.buf, buf.len);
279}
280
281void packet_fflush(FILE *f)
282{

Callers 1

write_v0_refFunction · 0.85

Calls 2

format_packetFunction · 0.85
fwrite_or_dieFunction · 0.85

Tested by

no test coverage detected