summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-08-02 15:30:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-02 15:30:43 -0700
commit30bf8d9f4f06d8e35793612c8611cb03c53a73db (patch)
tree194baa306b8fb60956fe05d8a6daa42c6cc0bfb4 /transport.h
parentMerge branch 'en/t6042-insane-merge-rename-testcases' (diff)
parentfetch-pack: support negotiation tip whitelist (diff)
downloadtgif-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.h')
-rw-r--r--transport.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index 7a9a7fcaf3..113530ea54 100644
--- a/transport.h
+++ b/transport.h
@@ -36,6 +36,16 @@ struct git_transport_options {
const char *receivepack;
struct push_cas_option *cas;
struct list_objects_filter_options filter_options;
+
+ /*
+ * This is only used during fetch. See the documentation of
+ * negotiation_tips in struct fetch_pack_args.
+ *
+ * This field is only supported by transports that support connect or
+ * stateless_connect. Set this field directly instead of using
+ * transport_set_option().
+ */
+ struct oid_array *negotiation_tips;
};
enum transport_family {