]> git.ipfire.org Git - thirdparty/git.git/commit
transport: rename negotiation_tips
authorDerrick Stolee <stolee@gmail.com>
Tue, 19 May 2026 16:24:50 +0000 (16:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2026 02:33:23 +0000 (11:33 +0900)
commit4aef7dbb063cfd0923baae5a431913256edad667
tree661a20c1b45c0388a56f0c0821aa40b538b95258
parent1a445fc60b84df95253d740f3a112343ab5ed8d2
transport: rename negotiation_tips

The previous change added the --negotiation-restrict synonym for the
--negotiation-tip option for 'git fetch'. In anticipation of adding a new
option that behaves similarly but with distinct changes to its behavior,
rename the internal representation of this data from 'negotiation_tips' to
'negotiation_restrict_tips'.

The 'tips' part is kept because this is an oid_array in the transport layer.
This requires the builtin to handle parsing refs into collections of oids so
the transport layer can handle this cleaner form of the data.

Also update the string_list used to store the inputs from command-line
options.

Reviewed-by: Matthew John Cheetham <mjcheetham@outlook.com>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
fetch-pack.c
fetch-pack.h
transport-helper.c
transport.c
transport.h