summaryrefslogtreecommitdiff
path: root/ref-filter.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-22 07:47:24 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-22 07:47:24 -0700
commitf2bf477c7e05ebc9541c708d11b616bf1a2a9105 (patch)
treefb6259665fc8b745bbcdda099c775604b610fc89 /ref-filter.h
parent6131a76399dee6b477e1fa04bbd741d74d9aea6c (diff)
parent16a93c03c7824a40b034a6ee1cb1c68c8ef48682 (diff)
Merge branch 'jt/repo-structure' into ps/ref-peeled-tags
* jt/repo-structure: builtin/repo: add progress meter for structure stats builtin/repo: add keyvalue and nul format for structure stats builtin/repo: add object counts in structure output builtin/repo: introduce structure subcommand ref-filter: export ref_kind_from_refname() ref-filter: allow NULL filter pattern builtin/repo: rename repo_info() to cmd_repo_info()
Diffstat (limited to 'ref-filter.h')
-rw-r--r--ref-filter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ref-filter.h b/ref-filter.h
index 81f2c229a9..235c60f79c 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -135,6 +135,8 @@ struct ref_format {
OPT_STRVEC(0, "exclude", &(var)->exclude, \
N_("pattern"), N_("exclude refs which match pattern"))
+/* Get the reference kind from the provided reference name. */
+int ref_kind_from_refname(const char *refname);
/*
* API for filtering a set of refs. Based on the type of refs the user
* has requested, we iterate through those refs and apply filters