upload-pack: move allow_ref_in_want to upload_pack_data
commitd1d7a9452629a6caa26e80bd6ca69366ff65dd89
authorChristian Couder <christian.couder@gmail.com>
Thu, 4 Jun 2020 17:54:48 +0000 (4 19:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jun 2020 17:58:27 +0000 (4 10:58 -0700)
treef42c253165e52c3d60cb150d1aec073124104b88
parent59abe1962411b7dc9e459cdcee617f96491235a0
upload-pack: move allow_ref_in_want to upload_pack_data

As we cleanup 'upload-pack.c' by using 'struct upload_pack_data'
more thoroughly, let's move the 'allow_ref_in_want' static
variable into this struct.

It is used only by protocol v2 code.

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