pack-bitmap: implement combined filter
commit169a15ebd66dd23bf8c379ad33bced1578c848ef
authorPatrick Steinhardt <ps@pks.im>
Mon, 19 Apr 2021 11:47:02 +0000 (19 13:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Apr 2021 21:09:11 +0000 (19 14:09 -0700)
tree15d10df534d51c91698be05e3db7fc240fe6676b
parent7ab6aafa582b9c537885d4a6ef2c837323c5014d
pack-bitmap: implement combined filter

When the user has multiple objects filters specified, then this is
internally represented by having a "combined" filter. These combined
filters aren't yet supported by bitmap indices and can thus not be
accelerated.

Fix this by implementing support for these combined filters. The
implementation is quite trivial: when there's a combined filter, we
simply recurse into `filter_bitmap()` for all of the sub-filters.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c
t/t6113-rev-list-bitmap-filters.sh