]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
upload-pack: move use_sideband to upload_pack_data
authorChristian Couder <christian.couder@gmail.com>
Thu, 4 Jun 2020 17:54:41 +0000 (19:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jun 2020 17:58:25 +0000 (10:58 -0700)
commitf8edd1ca3c02dc8fd1f302e80557fb7eff8b724d
treefa11e7af25b3cbacba226fd3c61428494a37d7c2
parentd40f04e0b0f8fe60328fb28c366d53ef4501fbce
upload-pack: move use_sideband to upload_pack_data

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

This variable is used by both v0 and v2 protocols.

While at it, let's update the comment near the variable
definition.

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