]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: refactor accept_from_server()
authorChristian Couder <christian.couder@gmail.com>
Tue, 7 Apr 2026 11:52:40 +0000 (13:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Apr 2026 15:45:44 +0000 (08:45 -0700)
commit7557a562434804d27f1417fe94c4081e2ee7e68b
treee19b4bc01a14bb5e5e72b43ebcf40bcadf0c182d
parent16a4372a3df7579429b7bc23e984bd797a4b7b8d
promisor-remote: refactor accept_from_server()

In future commits, we are going to add more logic to
filter_promisor_remote() which is already doing a lot of things.

Let's alleviate that by moving the logic that checks and validates the
value of the `promisor.acceptFromServer` config variable into its own
accept_from_server() helper function.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.c