pack-objects: use rev.filter when possible
commit7940941de1f23d02c60581cc90a193988e5e2fe0
authorDerrick Stolee <derrickstolee@github.com>
Wed, 9 Mar 2022 16:01:34 +0000 (9 16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 18:25:26 +0000 (9 10:25 -0800)
tree7575d14928affe8fea827394bc9c316a5fb9b510
parentffaa137f646803749cf81017d3208be2ce8a2964
pack-objects: use rev.filter when possible

In builtin/pack-objects.c, we use a 'filter_options' global to populate
the --filter=<X> argument. The previous change created a pointer to a
filter option in 'struct rev_info', so we can use that pointer here as a
start to simplifying some usage of object filters.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c