From: David Carson <DCarson@extremenetworks.com>
To: "firstname.lastname@example.org" <email@example.com>
Subject: add 'ls-remote' option to limit output records
Date: Fri, 26 Apr 2019 18:56:55 +0000 [thread overview]
Message-ID: <560CCADB-511B-495E-B86B-F294486C088C@contoso.com> (raw)
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.
next reply other threads:[~2019-04-26 18:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-26 18:56 David Carson [this message]
2019-04-26 19:32 ` add 'ls-remote' option to limit output records Bryan Turner
2019-05-01 18:23 ` Jeff King
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
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).