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

Function odb_source_inmemory_freshen_object

odb/source-inmemory.c:297–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297static int odb_source_inmemory_freshen_object(struct odb_source *source,
298 const struct object_id *oid)
299{
300 struct odb_source_inmemory *inmemory = odb_source_inmemory_downcast(source);
301 if (find_cached_object(inmemory, oid))
302 return 1;
303 return 0;
304}
305
306static int odb_source_inmemory_begin_transaction(struct odb_source *source UNUSED,
307 struct odb_transaction **out UNUSED)

Callers

nothing calls this directly

Calls 2

find_cached_objectFunction · 0.85

Tested by

no test coverage detected