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

Function oidset_equal

oidset.c:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool oidset_equal(const struct oidset *a, const struct oidset *b)
20{
21 struct oidset_iter iter;
22 struct object_id *a_oid;
23
24 if (oidset_size(a) != oidset_size(b))
25 return false;
26
27 oidset_iter_init(a, &iter);
28 while ((a_oid = oidset_iter_next(&iter)))
29 if (!oidset_contains(b, a_oid))
30 return false;
31
32 return true;
33}
34
35int oidset_insert(struct oidset *set, const struct object_id *oid)
36{

Callers 2

fsck_has_queued_checksFunction · 0.85

Calls 4

oidset_sizeFunction · 0.85
oidset_iter_initFunction · 0.85
oidset_iter_nextFunction · 0.85
oidset_containsFunction · 0.85

Tested by 1