diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-04 07:48:06 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-04 07:48:07 -0800 |
| commit | a9db6c66f53f3d1230e575eec682e494b363bdc0 (patch) | |
| tree | 2a43fd8d2e190c720dcda46d4416b7c0e8618c82 /ref-filter.h | |
| parent | Merge branch 'tu/credential-install' (diff) | |
| parent | builtin/repo: add progress meter for structure stats (diff) | |
| download | git-a9db6c66f53f3d1230e575eec682e494b363bdc0.tar.gz git-a9db6c66f53f3d1230e575eec682e494b363bdc0.zip | |
Merge branch 'jt/repo-structure'
"git repo structure", a new command.
* 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.h | 2 |
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 |
