diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-06-14 15:54:26 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-15 08:44:23 -0700 |
commit | d30fe89c37b746ac2f3419ae0e3990a9984fb4cf (patch) | |
tree | c2e808a15dd4b9710c2586410b3d538c678b2ce5 /diffcore-order.c | |
parent | fetch-pack: use ref adv. to prune "have" sent (diff) | |
download | tgif-d30fe89c37b746ac2f3419ae0e3990a9984fb4cf.tar.xz |
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 <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-order.c')
0 files changed, 0 insertions, 0 deletions