diff options
| author | Christian Couder <christian.couder@gmail.com> | 2025-09-08 07:30:52 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-09-08 10:30:55 -0700 |
| commit | c213820c512dc0a5cfe11a075e41f789f3225923 (patch) | |
| tree | 47184f82eab6ba3c1737ad9dc0a3996066c8d9e7 /commit-graph.c | |
| parent | bcb08c837570f24a82d6484fc5f475372820e3f3 (diff) | |
promisor-remote: allow a client to check fields
A previous commit allowed a server to pass additional fields through
the "promisor-remote" protocol capability after the "name" and "url"
fields, specifically the "partialCloneFilter" and "token" fields.
Let's make it possible for a client to check if these fields match
what it expects before accepting a promisor remote.
We allow this by introducing a new "promisor.checkFields"
configuration variable. It should contain a comma or space separated
list of fields that will be checked.
By limiting the protocol to specific well-defined fields, we ensure
both server and client have a shared understanding of field
semantics and usage.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
