From: Jeff King Date: Fri, 15 May 2020 18:23:48 GMT Subject: Re: [PATCH 07/13] upload-pack: use upload_pack_data writer in receive_needs() Message-ID: <20200515182348.GG3692649@coredump.intra.peff.net> In-Reply-To: <20200515100454.14486-8-chriscool@tuxfamily.org> On Fri, May 15, 2020 at 12:04:48PM +0200, Christian Couder wrote: > 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. Makes sense. I don't think the writer carries any packet state between phases that would confuse us by using the same one. I did wonder how its use_sideband flag works, but it looks like we only set that in v2 when we see sideband-all. So for v0, it wouldn't affect us either way. -Peff