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
Michael Haggerty <mhagger@alum.mit.edu>
Date
Aug 11, 2013, 05:16 UTC
Message-ID
<52071E2E.2020001@alum.mit.edu>
In-Reply-To
<20130810232026.GF25779@paksenarrion.iveqy.com>
On 08/11/2013 01:20 AM, Fredrik Gustafsson wrote:
Show 6 quoted lines
> [...]
> 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.
Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
Previous: Fredrik GustafssonNext: Fredrik Gustafsson
Message 3 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.