summaryrefslogtreecommitdiffstats
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-03 00:30:43 +0200
committerJunio C Hamano <gitster@pobox.com>2018-08-03 00:30:43 +0200
commit30bf8d9f4f06d8e35793612c8611cb03c53a73db (patch)
tree194baa306b8fb60956fe05d8a6daa42c6cc0bfb4 /transport.c
parentMerge branch 'en/t6042-insane-merge-rename-testcases' (diff)
parentfetch-pack: support negotiation tip whitelist (diff)
downloadgit-30bf8d9f4f06d8e35793612c8611cb03c53a73db.tar.xz
git-30bf8d9f4f06d8e35793612c8611cb03c53a73db.zip
Merge branch 'jt/fetch-nego-tip'
"git fetch" learned a new option "--negotiation-tip" to limit the set of commits it tells the other end as "have", to reduce wasted bandwidth and cycles, which would be helpful when the receiving repository has a lot of refs that have little to do with the history at the remote it is fetching from. * jt/fetch-nego-tip: fetch-pack: support negotiation tip whitelist
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.c b/transport.c
index fdd813f684..b64b7bcb86 100644
--- a/transport.c
+++ b/transport.c
@@ -320,6 +320,7 @@ static int fetch_refs_via_pack(struct transport *transport,
args.filter_options = data->options.filter_options;
args.stateless_rpc = transport->stateless_rpc;
args.server_options = transport->server_options;
+ args.negotiation_tips = data->options.negotiation_tips;
if (!data->got_remote_heads)
refs_tmp = get_refs_via_connect(transport, 0, NULL);