]> git.ipfire.org Git - thirdparty/git.git/commit
oidset: introduce `oidset_equal()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 19 Nov 2025 07:50:54 +0000 (08:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Nov 2025 20:15:59 +0000 (12:15 -0800)
commit5d795b34dcbf46039c3dda028bb8df8d75a5a9d0
tree808c363b24b5949324ed160786195a61ee487dba
parentb67b2d9fb7ccfaa72446d76abc8c36849d2e0685
oidset: introduce `oidset_equal()`

Introduce a new function that allows the caller to verify whether two
oidsets contain the exact same object IDs.

Note that this change requires us to change `oidset_iter_init()` to
accept a `const struct oidset`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
oidset.c
oidset.h