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

Function odb_source_for_each_object

odb/source.h:360–367  ·  view source on GitHub ↗

* Iterate through all objects contained in the given source and invoke the * callback function for each of them. Returning a non-zero code from the * callback function aborts iteration. There is no guarantee that objects * are only iterated over once. * * The optional `request` structure serves as a template for retrieving the * object info for each individual iterated object and will be pop

Source from the content-addressed store, hash-verified

358 * case iteration has failed, or a non-zero value returned from the callback.
359 */
360static inline int odb_source_for_each_object(struct odb_source *source,
361 const struct object_info *request,
362 odb_for_each_object_cb cb,
363 void *cb_data,
364 const struct odb_for_each_object_options *opts)
365{
366 return source->for_each_object(source, request, cb, cb_data, opts);
367}
368
369/*
370 * Count the number of objects in the given object database source.

Calls

no outgoing calls