upload-pack: move filter_capability_requested to upload_pack_data
authorChristian Couder <redacted>
Thu, 4 Jun 2020 17:54:42 +0000 (19:54 +0200)
committerJunio C Hamano <redacted>
Thu, 4 Jun 2020 17:58:26 +0000 (10:58 -0700)
commit59a902612ab2cdea2a30882e90680a1e7618f823
treec5b889eb177e2de8987138bef825b7586be65e67
parentf8edd1ca3c02dc8fd1f302e80557fb7eff8b724d
upload-pack: move filter_capability_requested to upload_pack_data

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

It is only used by protocol v0 code since protocol v2 assumes
certain baseline capabilities, but rolling it into
upload_pack_data and just letting v2 code ignore it as it does
now is more coherent and cleaner.

Signed-off-by: Christian Couder <redacted>
Acked-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
upload-pack.c
git clone https://git.99rst.org/PROJECT