ref-filter: get rid of show_ref_array_item
authorZheNing Hu <adlternative@gmail.com>
Mon, 19 Apr 2021 11:28:44 +0000 (11:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Apr 2021 22:08:00 +0000 (15:08 -0700)
commit22f69a85edf29dba2278b55f14419e4ea48148d2
tree76728ec76cae6f9ebb063efa1b94c15579d04546
parentb0c09ab8796fb736efa432b8e817334f3e5ee75a
ref-filter: get rid of show_ref_array_item

Inlining the exported function `show_ref_array_item()`,
which is not providing the right level of abstraction,
simplifies the API and can unlock improvements at the
former call sites.

Helped-by: René Scharfe <l.s.r@web.de>
Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/for-each-ref.c
builtin/tag.c
ref-filter.c
ref-filter.h