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

Function for_each_prefixed_object_wrapper_cb

odb/source-loose.c:430–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430static int for_each_prefixed_object_wrapper_cb(const struct object_id *oid,
431 void *node_data UNUSED,
432 void *cb_data)
433{
434 struct for_each_object_wrapper_data *data = cb_data;
435 if (data->request) {
436 struct object_info oi = *data->request;
437
438 if (odb_source_read_object_info(&data->loose->base,
439 oid, &oi, 0) < 0)
440 return -1;
441
442 return data->cb(oid, &oi, data->cb_data);
443 } else {
444 return data->cb(oid, NULL, data->cb_data);
445 }
446}
447
448static int odb_source_loose_for_each_object(struct odb_source *source,
449 const struct object_info *request,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected