| 428 | } |
| 429 | |
| 430 | static 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 | |
| 448 | static int odb_source_loose_for_each_object(struct odb_source *source, |
| 449 | const struct object_info *request, |
nothing calls this directly
no test coverage detected