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

Function oid_array_for_each

oid-array.c:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56int oid_array_for_each(struct oid_array *array,
57 for_each_oid_fn fn,
58 void *data)
59{
60 size_t i;
61
62 /* No oid_array_sort() here! See oid-array.h */
63
64 for (i = 0; i < array->nr; i++) {
65 int ret = fn(array->oid + i, data);
66 if (ret)
67 return ret;
68 }
69 return 0;
70}
71
72int oid_array_for_each_unique(struct oid_array *array,
73 for_each_oid_fn fn,

Callers 2

negotiate_using_fetchFunction · 0.85
get_short_oidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected