]> git.99rst.org Git - git.git/commit
MyFirstObjectWalk: fix filtered object walk
authorDirk Gouders <redacted>
Wed, 27 Mar 2024 11:22:14 +0000 (12:22 +0100)
committerJunio C Hamano <redacted>
Wed, 27 Mar 2024 16:24:34 +0000 (09:24 -0700)
commitaf3888890e7eda11c54f0eca96a69b8178f46bff
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/MyFirstObjectWalk.txt
git clone https://git.99rst.org/PROJECT