From: Jonathan Tan Date: Thu, 14 Jun 2018 22:54:26 +0000 (-0700) Subject: fetch-pack: make negotiation-related vars local X-Git-Tag: v2.19.0-rc0~106^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d30fe89c37b746ac2f3419ae0e3990a9984fb4cf?hp=d30fe89c37b746ac2f3419ae0e3990a9984fb4cf fetch-pack: make negotiation-related vars local Reduce the number of global variables by making the priority queue and the count of non-common commits in it local, passing them as a struct to various functions where necessary. This also helps in the case that fetch_pack() is invoked twice in the same process (when tag following is required when using a transport that does not support tag following), in that different priority queues will now be used in each invocation, instead of reusing the possibly non-empty one. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano ---