]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter: export ref_kind_from_refname()
authorJustin Tobler <jltobler@gmail.com>
Tue, 21 Oct 2025 18:25:57 +0000 (13:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Oct 2025 21:40:37 +0000 (14:40 -0700)
commit6d1997f6cbc10ac03bc450630de4410762f77b6f
tree7e37e1c03106b06153a242403613976d09580062
parenteafc03dbe316478acff5eef3b70c037de4758f08
ref-filter: export ref_kind_from_refname()

When filtering refs, `ref_kind_from_refname()` is used to determine the
ref type. In a subsequent commit, this same logic is reused when
counting refs by type. Export the function to prepare for this change.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
ref-filter.h