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

2018-06-29 Thread Junio C Hamano
Jonathan Tan writes: >> fetch is a perfect example of supporting all three. I can do >> >> git fetch origin SHA1 >> git fetch origin master >> git fetch origin refs/heads/*:refs/heads/* > > OK, Brandon managed to convince me that this is fine. I've included glob > support, supporting the

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

2018-06-28 Thread Brandon Williams
On 06/28, Jonathan Tan wrote: > 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. > >

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

2018-06-28 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.