MyFirstObjectWalk: fix filtered object walk
commitaf3888890e7eda11c54f0eca96a69b8178f46bff
authorDirk Gouders <dirk@gouders.net>
Wed, 27 Mar 2024 11:22:14 +0000 (27 12:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Mar 2024 16:24:34 +0000 (27 09:24 -0700)
tree22229119d72d9236a31fc5b83b722c72dc0876d9
parent34e0b72b198a90a92f5b19b989bc8f0c7bfef148
MyFirstObjectWalk: fix filtered object walk

Commit f0d2f84919 (MyFirstObjectWalk: update recommended usage,
2022-03-09) changed a call of parse_list_objects_filter() in a way
that probably never worked: parse_list_objects_filter() always needed
a pointer as its first argument.

Fix this by removing the CALLOC_ARRAY and passing the address of
rev->filter to parse_list_objects_filter() in accordance to
such a call in revisions.c, for example.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/MyFirstObjectWalk.txt