]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
upload-pack: move {want,have}_obj to upload_pack_data
authorChristian Couder <christian.couder@gmail.com>
Fri, 15 May 2020 10:04:43 +0000 (12:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 May 2020 19:58:01 +0000 (12:58 -0700)
commit389f161ab295e9aad227ba9b13cc7b61b272dda8
treeed0e16dc55305827f3070889a7282bc03454dad9
parent06c7a4329633b1b21645993288c13bb888627521
upload-pack: move {want,have}_obj to upload_pack_data

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's move the want_obj and have_obj object
arrays into 'struct upload_pack_data'.

These object arrays are used by both upload_pack() and
upload_pack_v2(), for example when these functions call
create_pack_file(). We are going to use
'struct upload_pack_data' in upload_pack() in a followup
commit.

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