From: Christian Couder Date: Tue, 02 Jun 2020 04:19:39 GMT Subject: Re: [PATCH 02/12] upload-pack: move static vars to upload_pack_data Message-ID: In-Reply-To: <20200527180611.GA4020820@coredump.intra.peff.net> On Wed, May 27, 2020 at 8:06 PM Jeff King wrote: > > On Wed, May 27, 2020 at 06:47:32PM +0200, Christian Couder wrote: > > They are only used by protocol v0 code since protocol v2 assumes > > certain baseline capabilities, but rolling them into > > upload_pack_data and just letting v2 code ignore them as it does > > now is more coherent and cleaner. > > Is it perhaps worth keeping these v0-only fields grouped together within > the struct, along with a comment? Ok, I will try to do that in part 2 and part 3. > That way nobody has to repeat your > research later into which ones are used and which ones are not. > > > -static unsigned int timeout; > > This was unsigned, but gets moved as... > > > @@ -83,18 +80,21 @@ struct upload_pack_data { > > timestamp_t deepen_since; > > int deepen_rev_list; > > int deepen_relative; > > + int timeout; > > ...a signed int. Yeah, not sure what happened. Maybe I needed some coffee when I did that. It's fixed in my current version. Thanks, Christian.