Re: How can I automatically create a GIT branch that represents a sequence of tags?
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/