Re: add 'ls-remote' option to limit output records

2019-05-01 Thread Jeff King
On Fri, Apr 26, 2019 at 12:32:51PM -0700, Bryan Turner wrote: > > $ git ls-remote -n1 --tags --sort=v:refname origin "v*" > [...] > With the v2 wire protocol, the client could provide a prefix (like > `refs/tags/`, or potentially `refs/tags/v`) to reduce what the server > included in the r

Re: add 'ls-remote' option to limit output records

2019-04-26 Thread Bryan Turner
On Fri, Apr 26, 2019 at 11:57 AM David Carson wrote: > > Given that 'ls-remote' can be sorted, it would be useful to be able to ask > for a subset of the total number of result records. > > For example, if I want to retrieve only the tag with the highest version, I > would do so by adding this n

add 'ls-remote' option to limit output records

2019-04-26 Thread David Carson
Given that 'ls-remote' can be sorted, it would be useful to be able to ask for a subset of the total number of result records. For example, if I want to retrieve only the tag with the highest version, I would do so by adding this new option (-n1 in my example): $ git ls-remote -n1 --tag