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

Function packet_write_gently

pkt-line.c:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233static int packet_write_gently(const int fd_out, const char *buf, size_t size)
234{
235 struct strbuf err = STRBUF_INIT;
236 if (do_packet_write(fd_out, buf, size, &err)) {
237 error("%s", err.buf);
238 strbuf_release(&err);
239 return -1;
240 }
241 return 0;
242}
243
244void packet_write(int fd_out, const char *buf, size_t size)
245{

Calls 3

do_packet_writeFunction · 0.85
errorFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected