diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-03 01:30:43 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-03 01:30:43 +0300 |
commit | 30bf8d9f4f06d8e35793612c8611cb03c53a73db (patch) | |
tree | 194baa306b8fb60956fe05d8a6daa42c6cc0bfb4 /fetch-pack.h | |
parent | 84e74c64034dafe96edfb7a1f7272daa9149c1e3 (diff) | |
parent | 3390e42adb3b84a9d61b3d46f4105f4cb6ba5edd (diff) |
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 'fetch-pack.h')
-rw-r--r-- | fetch-pack.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h index 2160be9164..5b6e868802 100644 --- a/fetch-pack.h +++ b/fetch-pack.h @@ -16,6 +16,13 @@ struct fetch_pack_args { const struct string_list *deepen_not; struct list_objects_filter_options filter_options; const struct string_list *server_options; + + /* + * If not NULL, during packfile negotiation, fetch-pack will send "have" + * lines only with these tips and their ancestors. + */ + const struct oid_array *negotiation_tips; + unsigned deepen_relative:1; unsigned quiet:1; unsigned keep_pack:1; |