Re: [PATCH v4] fetch-pack: support negotiation tip whitelist

2018-07-22 Thread Duy Nguyen
On Tue, Jul 3, 2018 at 12:41 AM Jonathan Tan wrote: > +static void add_negotiation_tips(struct git_transport_options *smart_options) > +{ > + struct oid_array *oids = xcalloc(1, sizeof(*oids)); > + int i; > + > + for (i = 0; i < negotiation_tip.nr; i++) { > + const

[PATCH v4] fetch-pack: support negotiation tip whitelist

2018-07-02 Thread Jonathan Tan
During negotiation, fetch-pack eventually reports as "have" lines all commits reachable from all refs. Allow the user to restrict the commits sent in this way by providing a whitelist of tips; only the tips themselves and their ancestors will be sent. Both globs and single objects are supported.