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

Function odb_source_inmemory_count_objects

odb/source-inmemory.c:219–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static int odb_source_inmemory_count_objects(struct odb_source *source,
220 enum odb_count_objects_flags flags UNUSED,
221 unsigned long *out)
222{
223 struct odb_for_each_object_options opts = { 0 };
224 *out = 0;
225 return odb_source_inmemory_for_each_object(source, NULL, count_objects_cb,
226 out, &opts);
227}
228
229static int odb_source_inmemory_write_object(struct odb_source *source,
230 const void *buf, unsigned long len,

Callers

nothing calls this directly

Tested by

no test coverage detected