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

Function odb_for_each_object_ext

odb.c:837–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835}
836
837int odb_for_each_object_ext(struct object_database *odb,
838 const struct object_info *request,
839 odb_for_each_object_cb cb,
840 void *cb_data,
841 const struct odb_for_each_object_options *opts)
842{
843 int ret;
844
845 odb_prepare_alternates(odb);
846 for (struct odb_source *source = odb->sources; source; source = source->next) {
847 if (opts->flags & ODB_FOR_EACH_OBJECT_LOCAL_ONLY && !source->local)
848 continue;
849
850 ret = odb_source_for_each_object(source, request, cb, cb_data, opts);
851 if (ret)
852 return ret;
853 }
854
855 return 0;
856}
857
858int odb_for_each_object(struct object_database *odb,
859 const struct object_info *request,

Callers 3

get_short_oidFunction · 0.85
repo_for_each_abbrevFunction · 0.85
odb_for_each_objectFunction · 0.85

Calls 2

odb_prepare_alternatesFunction · 0.85

Tested by

no test coverage detected