diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-09-16 14:06:31 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-16 14:06:31 -0700 |
| commit | e8a0c243f92ea39c939af1d9bdc4ff40fe89fb57 (patch) | |
| tree | ef3c66aa05e4b4b4191177df90fed24f6cb1130f /refs.h | |
| parent | d29fc595c811b515e5991ae283cd46c420a0995b (diff) | |
| parent | 18695250667912d8278e76dce453706c3d488173 (diff) | |
| download | git-e8a0c243f92ea39c939af1d9bdc4ff40fe89fb57.tar.xz | |
Merge branch 'ps/reftable-exclude' into ps/reftable-alloc-failures
* ps/reftable-exclude:
refs/reftable: wire up support for exclude patterns
reftable/reader: make table iterator reseekable
t/unit-tests: introduce reftable library
Makefile: stop listing test library objects twice
builtin/receive-pack: fix exclude patterns when announcing refs
refs: properly apply exclude patterns to namespaced refs
Diffstat (limited to 'refs.h')
| -rw-r--r-- | refs.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -859,6 +859,15 @@ int ref_is_hidden(const char *, const char *, const struct strvec *); */ const char **hidden_refs_to_excludes(const struct strvec *hide_refs); +/* + * Prefix all exclude patterns with the namespace, if any. This is required + * because exclude patterns apply to the stripped reference name, not the full + * reference name with the namespace. + */ +const char **get_namespaced_exclude_patterns(const char **exclude_patterns, + const char *namespace, + struct strvec *out); + /* Is this a per-worktree ref living in the refs/ namespace? */ int is_per_worktree_ref(const char *refname); |
