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

Re: How can I automatically create a GIT branch that represents a sequence of tags?

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
Aug 11, 2013, 06:20 UTC
Message-ID
<20130811062026.GG25779@paksenarrion.iveqy.com>
In-Reply-To
<52071E2E.2020001@alum.mit.edu>
On Sun, Aug 11, 2013 at 07:16:30AM +0200, Michael Haggerty wrote:
Show 14 quoted lines
> On 08/11/2013 01:20 AM, Fredrik Gustafsson wrote:
> > [...]
> > It would be very hard to do a tool such as you describe, the reason is
> > that there's no sane way to order your tags. Git today show tags
> > alphabetically, all versions does not have a alphabtic order. [...]
> > It would be quite easy to make a script that create such branch for you,
> > if you only can sort the tags somehow.
> 
> GNU sort has a nice option that can sort this way:
> 
>   -V, --version-sort
>      Sort by version name and number.  It behaves like a standard sort,
>      except that each sequence of decimal digits is treated numerically
>      as an index/version number.

That's a nice feature, I remember we had that one as a feature request for git tag just a few days ago. It works well with git.git version numbers but won't be usefull in this case for git.git since git.git has other tags too (like the gitgui version tags). However if you've a nice namespace for the tags where you only tags versions, it might be an alternative.

-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com
Previous: Michael HaggertyNext: Philip Oakley
Message 4 of 9 in “How can I automatically create a GIT branch that represents a sequence of tags?”
  1. Kristian FreedAug 10, 2013
  2. Fredrik GustafssonAug 10, 2013
  3. Michael HaggertyAug 11, 2013
  4. Fredrik GustafssonAug 11, 2013
  5. Philip OakleyAug 11, 2013
  6. Kristian FreedAug 11, 2013
  7. Fredrik GustafssonAug 11, 2013
  8. Andreas SchwabAug 11, 2013
  9. Felipe ContrerasAug 11, 2013

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.