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

Function batch_unordered_object

builtin/cat-file.c:661–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661static int batch_unordered_object(const struct object_id *oid,
662 struct packed_git *pack,
663 off_t offset,
664 void *vdata)
665{
666 struct object_cb_data *data = vdata;
667
668 if (oidset_insert(data->seen, oid))
669 return 0;
670
671 oidcpy(&data->expand->oid, oid);
672 batch_object_write(NULL, data->scratch, data->opt, data->expand,
673 pack, offset);
674 return 0;
675}
676
677typedef void (*parse_cmd_fn_t)(struct batch_options *, const char *,
678 struct strbuf *, struct expand_data *);

Callers

nothing calls this directly

Calls 3

oidset_insertFunction · 0.85
oidcpyFunction · 0.85
batch_object_writeFunction · 0.85

Tested by

no test coverage detected