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

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

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jul 23, 2015, 17:21 UTC
Message-ID
<CA+P7+xpasr7gOYiSsdAyCgh6+D8nYQf9vuEhRna8k7HWMu1Rcg@mail.gmail.com>
In-Reply-To
<55B0B667.6000103@drmicha.warpmail.net>

On Thu, Jul 23, 2015 at 2:39 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

Show 15 quoted lines
>
> While not quite being intended for that purpose,
>
> git log --oneline --decorate --simplify-by-decoration [-n] --tags
>
> (or with a custom format instead of "--oneline --decorate") may come
> close to what you want.[*]
>
> Michael
>
> [*] As Linus once described it (iirc): oooh, evil. I like it.
> --
> 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

Yep, that's pretty much how a build system I've had to use does it. Sadly, this is quite slow, and I'm not sure if doing it built into the tag via for-each-ref would be faster? I mean obviously having to look at each commit is slower than just the tag name, but it might be faster than parsing through the log process? Though the log output has the advantage that it only shows you tags "on" a given branch.

Regards, Jake

Previous: Michael J GruberNext: Junio C Hamano
Message 7 of 10 in “Feature Request: Passing a number as an option to git tags for displaying latest tags”
  1. Halil ÖztürkJul 22, 2015
  2. Jacob KellerJul 22, 2015
  3. Andreas SchwabJul 22, 2015
  4. Junio C HamanoJul 22, 2015
  5. Junio C HamanoJul 22, 2015
  6. Michael J GruberJul 23, 2015
  7. Jacob KellerJul 23, 2015
  8. Junio C HamanoJul 23, 2015
  9. Jacob KellerJul 23, 2015
  10. Junio C HamanoJul 23, 2015

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.