]> git.ipfire.org Git - thirdparty/git.git/commit
upload-pack: move shallow_nr to upload_pack_data
authorChristian Couder <christian.couder@gmail.com>
Thu, 11 Jun 2020 12:05:09 +0000 (14:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2020 20:35:34 +0000 (13:35 -0700)
commit35b43a107c1a146bef4591ae34fd2040bcd9944c
tree7629d94ebaf1e1640f7dc9d287dfa71c26fc82d4
parent329f9960505ba4af082614890bac205054701ede
upload-pack: move shallow_nr to upload_pack_data

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

It is used by code common to protocol v0 and protocol v2.

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