ref-filter: handle nested tags in --points-at option
commit468887f0f8a0a9e465737c3ad23cb40c8d690f2f
authorJan Klötzke <jan@kloetzke.net>
Sat, 1 Jul 2023 20:57:02 +0000 (1 22:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jul 2023 21:16:05 +0000 (17 14:16 -0700)
tree438acebc131ee04b7b2f4047d9cf22d49d0a6818
parent5e238546dc7a232d8998f1cd1ec9d3f4a0add68b
ref-filter: handle nested tags in --points-at option

Tags are dereferenced until reaching a different object type to handle
nested tags, e.g. on checkout. In contrast, "git tag --points-at=..."
fails to list such nested tags because only one level of indirection is
obtained in filter_refs(). Implement the recursive dereferencing for the
"--points-at" option when filtering refs to unify the behaviour.

Signed-off-by: Jan Klötzke <jan@kloetzke.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
t/t6302-for-each-ref-filter.sh