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

Function odb_source_inmemory_read_object_info

odb/source-inmemory.c:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static 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
74struct odb_read_stream_inmemory {
75 struct odb_read_stream base;

Callers

nothing calls this directly

Calls 3

find_cached_objectFunction · 0.85
populate_object_infoFunction · 0.85

Tested by

no test coverage detected