From: Derrick Stolee <stolee@gmail.com>
To: Matthew John Cheetham <mjcheetham@outlook.com>,
Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org
Cc: gitster@pobox.com, ps@pks.im
Subject: Re: [PATCH v4 0/8] fetch: rework negotiation tip options
Date: Mon, 18 May 2026 15:27:23 -0400 [thread overview]
Message-ID: <b65e500e-ec9a-4dd9-8267-3e7843e410cd@gmail.com> (raw)
In-Reply-To: <VI0PR03MB116343A44C3D5E2562FBBEEEBC0032@VI0PR03MB11634.eurprd03.prod.outlook.com>
On 5/18/2026 1:24 PM, Matthew John Cheetham wrote:
> On 2026-05-14 13:41, Derrick Stolee via GitGitGadget wrote:
>
>> Updates in v4
>> =============
>>
>> Thanks, Matthew, for the detailed review! There are some big changes in this
>> version.
>>
>> * Expanded commit message to cite the commit that introduced the bug
>> (3f763ddf28).
>> * Renamed --negotiation-tip to --negotiation-restrict throughout docs/code
>> (including send-pack.c, transport-helper.c, builtin/pull.c). Added
>> OPT_ALIAS in git-pull.
>> * Switched config parsing to use parse_transport_option() helper. Removed
>> git push from docs (not implemented yet). Restructured --negotiate-only
>> validation flow.
>> * NEW Patch 5: Added have_sent() interface to negotiators, so included
>> haves can be de-duplicated properly by the negotiation algorithm.
>> * Replaced COMMON flag hack with negotiator->have_sent() calls. Moved
>> ref-pattern resolution into builtin/fetch.c (add_negotiation_tips()) so
>> fetch-pack receives pre-resolved oid_array instead of string_list. Added
>> test for --negotiation-tip ignoring missing refs. Added
>> duplicate-avoidance test for v0. Accepts commit hashes in addition to ref
>> names/globs.
>> * Use parse_transport_option() for config. Updated docs to mention commit
>> hashes. Removed git push from config docs. Fixed test to use correct
>> restrict/include combinations.
>> * In the last patch, add doc notes that remote config values also apply
>> during git push with push.negotiate, now that they are integrated by that
>> change.
>>
>
> Thank you for going through the comments on v3 in detail. This is a nice
> improvement overall.
>
> The main thing flagged (the COMMON bit confusion) is resolved by adding
> the new have_sent() API on the negotiator interface, which is much
> clearer and cleaner. The hoisting of the ref resolution to the same
> layer and reuse of add_negotiate_tips() is also done and appreciated!
>
> I've left replies on each patch, with only a small number of easily
> addressed comments.
Thanks for your review, including a confirmation that I properly
responded to your earlier review. Soon, I'll send a new version with
the few minor edits included.
Thanks,
-Stolee
next prev parent reply other threads:[~2026-05-18 19:27 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-08 14:36 [PATCH 0/4] fetch: add --must-have and remote.*.mustHave Derrick Stolee via GitGitGadget
2026-04-08 14:36 ` [PATCH 1/4] t5516: fix test order flakiness Derrick Stolee via GitGitGadget
2026-04-08 14:36 ` [PATCH 2/4] fetch: add --must-have option for negotiation Derrick Stolee via GitGitGadget
2026-04-08 14:36 ` [PATCH 3/4] remote: add mustHave config as default for --must-have Derrick Stolee via GitGitGadget
2026-04-08 14:36 ` [PATCH 4/4] send-pack: pass --must-have for push negotiation Derrick Stolee via GitGitGadget
2026-04-08 18:59 ` [PATCH 0/4] fetch: add --must-have and remote.*.mustHave Junio C Hamano
2026-04-09 12:53 ` Derrick Stolee
2026-04-15 15:14 ` [PATCH v2 0/7] fetch: rework negotiation tip options Derrick Stolee via GitGitGadget
2026-04-15 15:14 ` [PATCH v2 1/7] t5516: fix test order flakiness Derrick Stolee via GitGitGadget
2026-04-15 15:14 ` [PATCH v2 2/7] fetch: add --negotiation-restrict option Derrick Stolee via GitGitGadget
2026-04-15 21:57 ` Junio C Hamano
2026-04-19 23:00 ` Derrick Stolee
2026-04-20 10:32 ` Junio C Hamano
2026-04-20 11:35 ` Derrick Stolee
2026-04-15 15:14 ` [PATCH v2 3/7] transport: rename negotiation_tips Derrick Stolee via GitGitGadget
2026-04-20 8:11 ` Patrick Steinhardt
2026-04-15 15:14 ` [PATCH v2 4/7] remote: add remote.*.negotiationRestrict config Derrick Stolee via GitGitGadget
2026-04-15 19:16 ` Junio C Hamano
2026-04-15 15:14 ` [PATCH v2 5/7] fetch: add --negotiation-require option for negotiation Derrick Stolee via GitGitGadget
2026-04-15 19:50 ` Junio C Hamano
2026-04-21 18:06 ` Derrick Stolee
2026-04-20 8:11 ` Patrick Steinhardt
2026-04-20 11:41 ` Derrick Stolee
2026-04-15 15:14 ` [PATCH v2 6/7] remote: add negotiationRequire config as default for --negotiation-require Derrick Stolee via GitGitGadget
2026-04-15 15:14 ` [PATCH v2 7/7] send-pack: pass negotiation config in push Derrick Stolee via GitGitGadget
2026-04-22 15:25 ` [PATCH v3 0/7] fetch: rework negotiation tip options Derrick Stolee via GitGitGadget
2026-04-22 15:25 ` [PATCH v3 1/7] t5516: fix test order flakiness Derrick Stolee via GitGitGadget
2026-05-12 10:50 ` Matthew John Cheetham
2026-04-22 15:25 ` [PATCH v3 2/7] fetch: add --negotiation-restrict option Derrick Stolee via GitGitGadget
2026-05-12 11:11 ` Matthew John Cheetham
2026-05-12 14:23 ` Derrick Stolee
2026-04-22 15:25 ` [PATCH v3 3/7] transport: rename negotiation_tips Derrick Stolee via GitGitGadget
2026-05-12 11:30 ` Matthew John Cheetham
2026-05-12 14:33 ` Derrick Stolee
2026-04-22 15:25 ` [PATCH v3 4/7] remote: add remote.*.negotiationRestrict config Derrick Stolee via GitGitGadget
2026-05-12 12:29 ` Matthew John Cheetham
2026-05-12 14:52 ` Derrick Stolee
2026-04-22 15:25 ` [PATCH v3 5/7] fetch: add --negotiation-include option for negotiation Derrick Stolee via GitGitGadget
2026-05-12 14:38 ` Matthew John Cheetham
2026-05-12 16:54 ` Derrick Stolee
2026-04-22 15:25 ` [PATCH v3 6/7] remote: add remote.*.negotiationInclude config Derrick Stolee via GitGitGadget
2026-05-12 14:54 ` Matthew John Cheetham
2026-05-12 17:55 ` Derrick Stolee
2026-04-22 15:25 ` [PATCH v3 7/7] send-pack: pass negotiation config in push Derrick Stolee via GitGitGadget
2026-05-12 15:14 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 0/8] fetch: rework negotiation tip options Derrick Stolee via GitGitGadget
2026-05-14 12:41 ` [PATCH v4 1/8] t5516: fix test order flakiness Derrick Stolee via GitGitGadget
2026-05-18 16:19 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 2/8] fetch: add --negotiation-restrict option Derrick Stolee via GitGitGadget
2026-05-18 16:37 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 3/8] transport: rename negotiation_tips Derrick Stolee via GitGitGadget
2026-05-18 16:42 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 4/8] remote: add remote.*.negotiationRestrict config Derrick Stolee via GitGitGadget
2026-05-18 16:46 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 5/8] negotiator: add have_sent() interface Derrick Stolee via GitGitGadget
2026-05-18 16:57 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 6/8] fetch: add --negotiation-include option for negotiation Derrick Stolee via GitGitGadget
2026-05-18 17:12 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 7/8] remote: add remote.*.negotiationInclude config Derrick Stolee via GitGitGadget
2026-05-18 17:18 ` Matthew John Cheetham
2026-05-14 12:41 ` [PATCH v4 8/8] send-pack: pass negotiation config in push Derrick Stolee via GitGitGadget
2026-05-18 17:21 ` Matthew John Cheetham
2026-05-18 17:24 ` [PATCH v4 0/8] fetch: rework negotiation tip options Matthew John Cheetham
2026-05-18 19:27 ` Derrick Stolee [this message]
2026-05-18 20:19 ` [PATCH v5 " Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 1/8] t5516: fix test order flakiness Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 2/8] fetch: add --negotiation-restrict option Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 3/8] transport: rename negotiation_tips Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 4/8] remote: add remote.*.negotiationRestrict config Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 5/8] negotiator: add have_sent() interface Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 6/8] fetch: add --negotiation-include option for negotiation Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 7/8] remote: add remote.*.negotiationInclude config Derrick Stolee via GitGitGadget
2026-05-18 20:19 ` [PATCH v5 8/8] send-pack: pass negotiation config in push Derrick Stolee via GitGitGadget
2026-05-19 9:13 ` [PATCH v5 0/8] fetch: rework negotiation tip options Matthew John Cheetham
2026-05-19 15:08 ` Derrick Stolee
2026-05-19 16:24 ` [PATCH v6 " Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 1/8] t5516: fix test order flakiness Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 2/8] fetch: add --negotiation-restrict option Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 3/8] transport: rename negotiation_tips Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 4/8] remote: add remote.*.negotiationRestrict config Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 5/8] negotiator: add have_sent() interface Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 6/8] fetch: add --negotiation-include option for negotiation Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 7/8] remote: add remote.*.negotiationInclude config Derrick Stolee via GitGitGadget
2026-05-19 16:24 ` [PATCH v6 8/8] send-pack: pass negotiation config in push Derrick Stolee via GitGitGadget
2026-05-19 16:48 ` [PATCH v6 0/8] fetch: rework negotiation tip options Matthew John Cheetham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b65e500e-ec9a-4dd9-8267-3e7843e410cd@gmail.com \
--to=stolee@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=gitster@pobox.com \
--cc=mjcheetham@outlook.com \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox