Re: [PATCH v3 4/4] transport.c: introduce core.alternateRefsPrefixes

2018-10-01 Thread Taylor Blau
On Mon, Oct 01, 2018 at 06:57:37PM -0700, Taylor Blau wrote: > On Sat, Sep 29, 2018 at 03:34:26AM -0400, Jeff King wrote: > > On Fri, Sep 28, 2018 at 03:05:57PM -0700, Taylor Blau wrote: > > > > > > > For example, to advertise only tags, a caller using > > > > > 'core.alternateRefsCommand' would ha

Re: [PATCH v3 4/4] transport.c: introduce core.alternateRefsPrefixes

2018-10-01 Thread Taylor Blau
On Sat, Sep 29, 2018 at 03:34:26AM -0400, Jeff King wrote: > On Fri, Sep 28, 2018 at 03:05:57PM -0700, Taylor Blau wrote: > > > > > For example, to advertise only tags, a caller using > > > > 'core.alternateRefsCommand' would have to do: > > > > > > > > $ git config core.alternateRefsCommand ' \

Re: [PATCH v3 4/4] transport.c: introduce core.alternateRefsPrefixes

2018-09-29 Thread Jeff King
On Fri, Sep 28, 2018 at 03:05:57PM -0700, Taylor Blau wrote: > > > For example, to advertise only tags, a caller using > > > 'core.alternateRefsCommand' would have to do: > > > > > > $ git config core.alternateRefsCommand ' \ > > > git -C "$1" for-each-ref refs/tags --format="%(objectname)

Re: [PATCH v3 4/4] transport.c: introduce core.alternateRefsPrefixes

2018-09-28 Thread Taylor Blau
On Fri, Sep 28, 2018 at 01:30:57AM -0400, Jeff King wrote: > On Thu, Sep 27, 2018 at 09:25:45PM -0700, Taylor Blau wrote: > > > The recently-introduced "core.alternateRefsCommand" allows callers to > > specify with high flexibility the tips that they wish to advertise from > > alternates. This flex

Re: [PATCH v3 4/4] transport.c: introduce core.alternateRefsPrefixes

2018-09-27 Thread Jeff King
On Thu, Sep 27, 2018 at 09:25:45PM -0700, Taylor Blau wrote: > The recently-introduced "core.alternateRefsCommand" allows callers to > specify with high flexibility the tips that they wish to advertise from > alternates. This flexibility comes at the cost of some inconvenience > when the caller on

[PATCH v3 4/4] transport.c: introduce core.alternateRefsPrefixes

2018-09-27 Thread Taylor Blau
The recently-introduced "core.alternateRefsCommand" allows callers to specify with high flexibility the tips that they wish to advertise from alternates. This flexibility comes at the cost of some inconvenience when the caller only wishes to limit the advertisement to one or more prefixes. For exa