upload-pack: pass upload_pack_data to ok_to_give_up()
commit086673482068391dab193c8ef9c8fefb8176a218
authorChristian Couder <christian.couder@gmail.com>
Thu, 11 Jun 2020 12:05:15 +0000 (11 14:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2020 20:35:35 +0000 (11 13:35 -0700)
tree45649773cf3f47a904b4cdd6b82a85e890e7d27e
parent6fbbc4374f79deb2ebabdd60e46364df39ea5f62
upload-pack: pass upload_pack_data to ok_to_give_up()

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's pass that struct to ok_to_give_up(), so
that this function can use all the fields of the struct.

This will be used in followup commits to move a static variable
into 'upload_pack_data'.

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