Feature Request: Passing a number as an option to git tags for displaying latest tags

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Feature Request: Passing a number as an option to git tags for displaying latest tags

From: Halil Öztürk <hidden>
Date: 2016-06-15 23:05:51

Hello team,

Passing a number as an option to "git tags" command should display latest tags.

e.g. "git tags -5" will display last 5 tags only.

Similar behavior to "git log -5"

Thanks,
Halil

Re: Feature Request: Passing a number as an option to git tags for displaying latest tags

From: Jacob Keller <hidden>
Date: 2016-06-15 23:05:51

On Wed, Jul 22, 2015 at 10:17 AM, Halil Öztürk [off-list ref] wrote:
Hello team,

Passing a number as an option to "git tags" command should display latest tags.

e.g. "git tags -5" will display last 5 tags only.

Similar behavior to "git log -5"

Thanks,
Halil
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

While interesting, this would only really work for annotated tags. How
would you define order? tags are normally shown in sorted lexical
order (or version-order if you pass the --sort parameter).
Non-annotated tags do not contain the date time, and using the
commit's date information may not be accurate. While it is possible to
say show "the 5 most recent tags on a particular branch of history"
that would be using the log to determine this.

What exactly would you expect the behavior to be with tags? That might
help figure out what could be done instead.

Regards,
Jake
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help