]> Kevux Git Server - rit/commit
path-walk: allow consumer to specify object types
authorDerrick Stolee <derrickstolee@github.com>
Fri, 20 Dec 2024 16:21:12 +0000 (16:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2024 16:37:05 +0000 (08:37 -0800)
commitc8dba310d734962c0bcadd8cad1ebf7cfe734c8c
treeb594be4998d97ee2ff153c5c19f522a2f8410170
parentd190124f277952bd828f932d87e76deabedf0c83
path-walk: allow consumer to specify object types

We add the ability to filter the object types in the path-walk API so
the callback function is called fewer times.

This adds the ability to ask for the commits in a list, as well. We
re-use the empty string for this set of objects because these are passed
directly to the callback function instead of being part of the
'path_stack'.

Future changes will add the ability to visit annotated tags.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-path-walk.txt
path-walk.c
path-walk.h
t/helper/test-path-walk.c
t/t6601-path-walk.sh