git show "previous tag"

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 27 22:13:08 PDT 2014


On 8/27/14, 9:47 PM, Andrew Edwards wrote:
> Anyone here knows how to consistently obtain the previous tag on git?

Are tags always coming in order? Then it's easy:

git tag | tail -n2 | head -n1


Andrei




More information about the Digitalmars-d mailing list