]> Kevux Git Server - rit/commit
promisor-remote: refactor initialising field lists
authorChristian Couder <christian.couder@gmail.com>
Mon, 16 Feb 2026 13:23:07 +0000 (14:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 19:46:40 +0000 (11:46 -0800)
commita7d430d5b50bb37adae783ec29539cb76cbcc406
tree4804f72b1fdfbc969f4770f9fab776a391815638
parent864f55e1906897b630333675a52874c0fec2a45c
promisor-remote: refactor initialising field lists

In "promisor-remote.c", the fields_sent() and fields_checked()
functions serve similar purposes and contain a small amount of
duplicated code.

As we are going to add a similar function in a following commit,
let's refactor this common code into a new initialize_fields_list()
function.

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