]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ds/fetch-negotiation-options' into next
authorJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 04:39:23 +0000 (13:39 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 04:39:23 +0000 (13:39 +0900)
The negotiation tip options in "git fetch" have been reworked to
allow requiring certain refs to be sent as "have" lines, and to
restrict negotiation to a specific set of refs.

* ds/fetch-negotiation-options:
  send-pack: pass negotiation config in push
  remote: add remote.*.negotiationInclude config
  fetch: add --negotiation-include option for negotiation
  negotiator: add have_sent() interface
  remote: add remote.*.negotiationRestrict config
  transport: rename negotiation_tips
  fetch: add --negotiation-restrict option
  t5516: fix test order flakiness

1  2 
builtin/fetch.c
fetch-pack.c
negotiator/default.c
negotiator/skipping.c
remote.c
send-pack.c
t/t5510-fetch.sh
t/t5516-fetch-push.sh
transport-helper.c
transport.c

diff --cc builtin/fetch.c
Simple merge
diff --cc fetch-pack.c
index c8fa0a609ac6de3083e06c79233a01213f23a4ae,96071434b88fa568eb17422e715bea96e88965d5..120e01f3cf26740ffc896c12eb4a9d233603e89f
@@@ -1884,8 -1943,8 +1945,9 @@@ static struct ref *do_fetch_pack_v2(str
        if (negotiator)
                negotiator->release(negotiator);
  
 +      fsck_options_clear(&fsck_options);
        oidset_clear(&common);
+       oidset_clear(&negotiation_include_oids);
        return ref;
  }
  
Simple merge
Simple merge
diff --cc remote.c
Simple merge
diff --cc send-pack.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc transport.c
Simple merge