git/list[1] front-page[2] threads[3] people[4] search[5] about
 

add 'ls-remote' option to limit output records

From
DCDavid Carson <dcarson@extremenetworks.com>
Date
Apr 26, 2019, 18:56 UTC
Message-ID
<560CCADB-511B-495E-B86B-F294486C088C@contoso.com>
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
Next: Bryan Turner
Message 1 of 3 in “add 'ls-remote' option to limit output records”
  1. David CarsonApr 26, 2019
  2. Bryan TurnerApr 26, 2019
  3. Jeff KingMay 1, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.