Re: [PATCH 02/12] upload-pack: move static vars to upload_pack_data
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Jun 2, 2020, 04:19 UTC
- Message-ID
- <CAP8UFD2mPb+kzsuM=X-KJTaQmMP0uMnRSTkCYSHj=ixE0xk5fA@mail.gmail.com>
- In-Reply-To
- <20200527180611.GA4020820@coredump.intra.peff.net>
On Wed, May 27, 2020 at 8:06 PM Jeff King <peff@peff.net> wrote:
> > On Wed, May 27, 2020 at 06:47:32PM +0200, Christian Couder wrote:
Show 7 quoted lines
> > 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.
Show 14 quoted lines
> 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.