]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter.c
oidset: refactor oidset_insert_from_set()
authorChristian Couder <christian.couder@gmail.com>
Wed, 14 Feb 2024 14:25:11 +0000 (15:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Feb 2024 17:39:14 +0000 (09:39 -0800)
commiteaf07b7d15e067305d33150eb98bf0351f9f4cbd
treeeb4ec48ac99f448027dbb95733a785140deb231e
parent3ff56af99b1c9becd9e603b59986359f553e62a8
oidset: refactor oidset_insert_from_set()

In a following commit, we will need to add all the oids from a set into
another set. In "list-objects-filter.c", there is already a static
function called add_all() to do that.

Let's rename this function oidset_insert_from_set() and move it into
oidset.{c,h} to make it generally available.

While at it, let's remove a useless `!= NULL`.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter.c
oidset.c
oidset.h