Re: Git tag output order is incorrect (IMHO)
- From
Rahul Bansal <rahul.bansal@rtcamp.com>
- Date
- Jul 18, 2013, 15:57 UTC
- Message-ID
- <CADtAFQ=DwTHv3n56xoTEN7JmwT+b3Bv0CdR_nBbyYudgoCmZUA@mail.gmail.com>
- In-Reply-To
- <CACsJy8CpZHTCr0=MkSpfurPW_fyLGN_zd4uSzvBSYbuqH8aXew@mail.gmail.com>
Hi Day,
I am aware of that command as well.
I think `git tag` current default order is string-based sorting. I felt version-number based sorting and/or create-date based sorting will be more appropriate.
-- Rahul Bansal | Founder & CEO | rtCamp Solutions Pvt. Ltd. Skype: rahul286 | Twitter: @rahul286 | Web: http://rtcamp.com/
On Thu, Jul 18, 2013 at 9:21 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 27 quoted lines
> > On Thu, Jul 18, 2013 at 10:27 PM, Rahul Bansal <rahul.bansal@rtcamp.com> > wrote: > > I am posting here first time, so please excuse me if this is not right > > place to send something like this. > > > > Please check - > > http://stackoverflow.com/questions/6091306/can-i-make-git-print-x-y-z-style-tag-names-in-a-sensible-order > > > > And also - https://github.com/gitlabhq/gitlabhq/issues/4565 > > > > IMHO "git tag" is expected to show tag-list ordered by versions. > > > > It may be case, that people do not follow same version numbering > > convention. Most people after x.9.x increment major version (that is why > > they may not be affected because of this) > > > > Another option like "git tag --date-asc" can be added which will print > > tags by creation date. (As long as people do not create backdated tag, this > > will work). > > Try > > git for-each-ref --sort=committerdate --format='%(refname:short)' > refs/tags > -- > Duy