diff options
| author | Justin Tobler <jltobler@gmail.com> | 2025-10-21 13:25:57 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-21 14:40:37 -0700 |
| commit | 6d1997f6cbc10ac03bc450630de4410762f77b6f (patch) | |
| tree | 7e37e1c03106b06153a242403613976d09580062 /ref-filter.c | |
| parent | ref-filter: allow NULL filter pattern (diff) | |
| download | git-6d1997f6cbc10ac03bc450630de4410762f77b6f.tar.gz git-6d1997f6cbc10ac03bc450630de4410762f77b6f.zip | |
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>
Diffstat (limited to 'ref-filter.c')
| -rw-r--r-- | ref-filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c index 2cb5a166d6..30cc488d8a 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -2833,7 +2833,7 @@ struct ref_array_item *ref_array_push(struct ref_array *array, return ref; } -static int ref_kind_from_refname(const char *refname) +int ref_kind_from_refname(const char *refname) { unsigned int i; |
