MCPcopy Index your code
hub / github.com/git/git / oid_array_for_each_unique

Function oid_array_for_each_unique

oid-array.c:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72int oid_array_for_each_unique(struct oid_array *array,
73 for_each_oid_fn fn,
74 void *data)
75{
76 size_t i;
77
78 oid_array_sort(array);
79
80 for (i = 0; i < array->nr; i = oid_array_next_unique(array, i)) {
81 int ret = fn(array->oid + i, data);
82 if (ret)
83 return ret;
84 }
85 return 0;
86}
87
88void oid_array_filter(struct oid_array *array,
89 for_each_oid_fn want,

Callers 8

submodule_has_commitsFunction · 0.85
submodule_needs_pushingFunction · 0.85
find_unpushed_submodulesFunction · 0.85
get_next_submoduleFunction · 0.85
repo_for_each_abbrevFunction · 0.85
t_enumerationFunction · 0.85
batch_objectsFunction · 0.85

Calls 2

oid_array_sortFunction · 0.85
oid_array_next_uniqueFunction · 0.85

Tested by

no test coverage detected