X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=oidset.h;h=209ae7a1736e49818acc1e05b7f3cb4aceada0fe;hp=ba4a5a2cd3a7a233bc9ca2cb7cf4a58a1e5a122c;hb=HEAD;hpb=f39fe8fcb269e0b7ec48f2ea57fcb879908ac447 diff --git a/oidset.h b/oidset.h index ba4a5a2cd3..262f4256d6 100644 --- a/oidset.h +++ b/oidset.h @@ -47,6 +47,12 @@ int oidset_contains(const struct oidset *set, const struct object_id *oid); */ int oidset_insert(struct oidset *set, const struct object_id *oid); +/** + * Insert all the oids that are in set 'src' into set 'dest'; a copy + * is made of each oid inserted into set 'dest'. + */ +void oidset_insert_from_set(struct oidset *dest, struct oidset *src); + /** * Remove the oid from the set. *