public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [feature request] Is it possible to have git tag can be sorted and filtered by semver?
@ 2024-07-22 16:58 Thaina Yu
  2024-07-22 21:30 ` brian m. carlson
  0 siblings, 1 reply; 6+ messages in thread
From: Thaina Yu @ 2024-07-22 16:58 UTC (permalink / raw)
  To: git

Currently there is `ls-remote` and `tag` that has option to
--sort=version:refname which is really useful when we have tag as
version format and let it sort as numeric version

But it could be better if we can also sort and filter the version in
the range of semver format. So we can use git system as dependency
management system natively

So I would like to propose a new sort option semver:refname

`git ls-remote --sort=semver:refname myRepoUrl refs/tags/v{^0.*.*}`
where brace {} can be used to define semver versioning ranges for the
patterns in addition to glob filter

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

end of thread, other threads:[~2024-07-23  3:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22 16:58 [feature request] Is it possible to have git tag can be sorted and filtered by semver? Thaina Yu
2024-07-22 21:30 ` brian m. carlson
2024-07-22 23:14   ` rsbecker
2024-07-22 23:40     ` Junio C Hamano
2024-07-23  0:05     ` brian m. carlson
2024-07-23  3:06       ` Thaina Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox