upload-pack: use 'struct upload_pack_data' in upload_pack()
commitebf8ebcc56d5f47c531bce0e6238244752d91888
authorChristian Couder <christian.couder@gmail.com>
Fri, 15 May 2020 10:04:45 +0000 (15 12:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 May 2020 19:58:01 +0000 (18 12:58 -0700)
tree92cb917498aef1580e14073acdb56468d25f2c2a
parente8498322fa033b6ed5320119a82da0bc50ca18ca
upload-pack: use 'struct upload_pack_data' in upload_pack()

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's use 'struct upload_pack_data' in
upload_pack().

This will make it possible in followup commits to remove a lot
of static variables and local variables that have the same name
and purpose as fields in 'struct upload_pack_data'. This will
also make upload_pack() work in a more similar way as
upload_pack_v2().

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