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

Function for_each_object_wrapper_cb

odb/source-loose.c:412–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410};
411
412static int for_each_object_wrapper_cb(const struct object_id *oid,
413 const char *path,
414 void *cb_data)
415{
416 struct for_each_object_wrapper_data *data = cb_data;
417
418 if (data->request) {
419 struct object_info oi = *data->request;
420
421 if (read_object_info_from_path(data->loose, path, oid, &oi, 0) < 0)
422 return -1;
423
424 return data->cb(oid, &oi, data->cb_data);
425 } else {
426 return data->cb(oid, NULL, data->cb_data);
427 }
428}
429
430static int for_each_prefixed_object_wrapper_cb(const struct object_id *oid,
431 void *node_data UNUSED,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected