]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ds/fetch-negotiation-options' into seen
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 01:21:55 +0000 (10:21 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 01:21:56 +0000 (10:21 +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
  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
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,8b080b0080453db77f33b557dbc03d1be0b9b4dd..3ec53a672d0155c84e68fb93b7d0399b001b7d82
@@@ -1884,8 -1974,8 +1976,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;
  }
  
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