aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-09-16 14:06:31 -0700
committerJunio C Hamano <gitster@pobox.com>2024-09-16 14:06:31 -0700
commite8a0c243f92ea39c939af1d9bdc4ff40fe89fb57 (patch)
treeef3c66aa05e4b4b4191177df90fed24f6cb1130f /refs.h
parentd29fc595c811b515e5991ae283cd46c420a0995b (diff)
parent18695250667912d8278e76dce453706c3d488173 (diff)
downloadgit-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index f8b919a138..3f774e96d1 100644
--- a/refs.h
+++ b/refs.h
@@ -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);