diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-02 15:30:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-02 15:30:43 -0700 |
commit | 30bf8d9f4f06d8e35793612c8611cb03c53a73db (patch) | |
tree | 194baa306b8fb60956fe05d8a6daa42c6cc0bfb4 /transport-helper.c | |
parent | Merge branch 'en/t6042-insane-merge-rename-testcases' (diff) | |
parent | fetch-pack: support negotiation tip whitelist (diff) | |
download | tgif-30bf8d9f4f06d8e35793612c8611cb03c53a73db.tar.xz |
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-helper.c')
-rw-r--r-- | transport-helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/transport-helper.c b/transport-helper.c index 8b5abca29f..eab7f47565 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -686,6 +686,9 @@ static int fetch(struct transport *transport, transport, "filter", data->transport_options.filter_options.filter_spec); + if (data->transport_options.negotiation_tips) + warning("Ignoring --negotiation-tip because the protocol does not support it."); + if (data->fetch) return fetch_with_fetch(transport, nr_heads, to_fetch); |