git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* add 'ls-remote' option to limit output records
@ 2019-04-26 18:56 David Carson
  2019-04-26 19:32 ` Bryan Turner
  0 siblings, 1 reply; 3+ messages in thread
From: David Carson @ 2019-04-26 18:56 UTC (permalink / raw)
  To: git@vger.kernel.org

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 --tags --sort=v:refname origin "v*"

That would save from having to receive a large list of tags from the remote, only one of which I care about.

~David



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-01 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-26 18:56 add 'ls-remote' option to limit output records David Carson
2019-04-26 19:32 ` Bryan Turner
2019-05-01 18:23   ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).