]> git.99rst.org Git - git.git/commit
promisor-remote: add 'local_name' to 'struct promisor_info'
authorChristian Couder <redacted>
Wed, 27 May 2026 14:08:16 +0000 (16:08 +0200)
committerJunio C Hamano <redacted>
Wed, 27 May 2026 20:20:15 +0000 (05:20 +0900)
commit53951298515ad26728175182c9103eea71885220
tree730f6332262e8c58256445e867fc9fdc4ae5930b
parent58880c82feb460015153575dc02b9959e4d8a8a0
promisor-remote: add 'local_name' to 'struct promisor_info'

In a following commit, we will store promisor remote information under
a remote name different than the one the server advertised.

To prepare for this change, let's add a new 'char *local_name' member
to 'struct promisor_info', and let's update the related functions.

While at it, let's also add a small promisor_info_local_name() helper
that returns `local_name` when set, `name` otherwise, and let's use
this small helper in promisor_store_advertised_fields() and in the
post-loop of filter_promisor_remote() so that lookups against the local
repo configuration use the right name.

Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
promisor-remote.c
git clone https://git.99rst.org/PROJECT