Someone at $work asked me this week how to find the current and
previous tags on his branch so he could generate release notes. I
just need "last two tags on head in topo-order". I was surprised by
how complicated this turned out to be. I ended up with this:
git log --decorate=full --pretty=format:'%d' HEAD |
sed -n -e 's-^.* refs/tags/\(.*\)[ )].*$-\1-p' |
Surely there's a cleaner way, right?
On Sun, Sep 8, 2013 at 6:49 PM, Felipe Contreras
> On Thu, Jul 18, 2013 at 10:27 AM, Rahul Bansal <rahul.ban...@rtcamp.com>
>> I am posting here first time, so please excuse me if this is not right place
>> to send something like this.
>> Please check -
>> 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
> I completely agree, and there was a proposal to an option like this a
> long time ago:
> Felipe Contreras
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html