aboutsummaryrefslogtreecommitdiff
path: root/list-objects-filter.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-25 11:54:16 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-25 11:54:17 -0800
commit6b5ad01886b9492d8662509604277fc88e705dcb (patch)
tree1ab6013fb7545ee8658bc3b555f567ad3de3519f /list-objects-filter.c
parente8c6456592e6601a1118e1c29a788a09ada75a0c (diff)
parentef2f1845ec4b683df791bfd956f551b096a38009 (diff)
downloadgit-6b5ad01886b9492d8662509604277fc88e705dcb.tar.xz
Merge branch 'cc/lop-filter-auto'
"auto filter" logic for large-object promisor remote. * cc/lop-filter-auto: fetch-pack: wire up and enable auto filter logic promisor-remote: change promisor_remote_reply()'s signature promisor-remote: keep advertised filters in memory list-objects-filter-options: support 'auto' mode for --filter doc: fetch: document `--filter=<filter-spec>` option fetch: make filter_options local to cmd_fetch() clone: make filter_options local to cmd_clone() promisor-remote: allow a client to store fields promisor-remote: refactor initialising field lists
Diffstat (limited to 'list-objects-filter.c')
-rw-r--r--list-objects-filter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/list-objects-filter.c b/list-objects-filter.c
index acd65ebb73..78316e7f90 100644
--- a/list-objects-filter.c
+++ b/list-objects-filter.c
@@ -745,6 +745,13 @@ static void filter_combine__init(
filter->finalize_omits_fn = filter_combine__finalize_omits;
}
+static void filter_auto__init(
+ struct list_objects_filter_options *filter_options UNUSED,
+ struct filter *filter UNUSED)
+{
+ BUG("LOFC_AUTO should have been resolved before initializing the filter");
+}
+
typedef void (*filter_init_fn)(
struct list_objects_filter_options *filter_options,
struct filter *filter);
@@ -760,6 +767,7 @@ static filter_init_fn s_filters[] = {
filter_sparse_oid__init,
filter_object_type__init,
filter_combine__init,
+ filter_auto__init,
};
struct filter *list_objects_filter__init(