| 56 | } |
| 57 | |
| 58 | static int odb_source_inmemory_read_object_info(struct odb_source *source, |
| 59 | const struct object_id *oid, |
| 60 | struct object_info *oi, |
| 61 | enum object_info_flags flags UNUSED) |
| 62 | { |
| 63 | struct odb_source_inmemory *inmemory = odb_source_inmemory_downcast(source); |
| 64 | const struct inmemory_object *object; |
| 65 | |
| 66 | object = find_cached_object(inmemory, oid); |
| 67 | if (!object) |
| 68 | return -1; |
| 69 | |
| 70 | populate_object_info(inmemory, oi, object); |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | struct odb_read_stream_inmemory { |
| 75 | struct odb_read_stream base; |
nothing calls this directly
no test coverage detected