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

Function batch_write

builtin/cat-file.c:384–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384static void batch_write(struct batch_options *opt, const void *data, int len)
385{
386 if (opt->buffer_output) {
387 if (fwrite(data, 1, len, stdout) != len)
388 die_errno("unable to write to stdout");
389 } else
390 write_or_die(1, data, len);
391}
392
393static void print_object_or_die(struct batch_options *opt, struct expand_data *data)
394{

Callers 2

print_object_or_dieFunction · 0.85
batch_object_writeFunction · 0.85

Calls 2

die_errnoFunction · 0.85
write_or_dieFunction · 0.85

Tested by

no test coverage detected