]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
upload-pack: use upload_pack_data writer in receive_needs()
authorChristian Couder <christian.couder@gmail.com>
Fri, 15 May 2020 10:04:48 +0000 (12:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 May 2020 19:58:01 +0000 (12:58 -0700)
commit4ace0283b7dbfef1030d1998345a50af9946ea88
treeb24d4ba81c291ed32808753d110d888769425f9c
parentd92ae2c0905c55f83830acec41ef7938200fa171
upload-pack: use upload_pack_data writer in receive_needs()

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's use the 'struct packet_writer writer'
field from 'struct upload_pack_data' in receive_needs(),
instead of a local 'struct packet_writer writer' variable.

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