NAME

Dist::Zilla::Plugin::Git::DescribeVersion - provide a version number by using the git-describe command

VERSION

version 0.004008

SYNOPSIS

In your dist.ini:

[Git::DescribeVersion]
match_pattern  = v[0-9]*     ; this is the default

DESCRIPTION

This does the Dist::Zilla::Role::VersionProvider role. It uses Git::DescribeVersion to count the number of commits since the last tag (matching match_pattern) or since the initial commit, and uses the result as the version parameter for your distribution.

The plugin accepts the same options as the base module's constructor. See "OPTIONS" in Git::DescribeVersion.

You can also set the V environment variable to override the new version. This is useful if you need to bump to a specific version. For example, if the last tag is 0.005 and you want to jump to 1.000 you can set V = 1.000.

$ V=1.000 dzil release

SEE ALSO

This code copied/modified from Dist::Zilla::Plugin::Git::NextVersion.

Thanks rjbs and jquelin (and many others)!

AUTHOR

Randy Stauner <rwstauner@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Randy Stauner.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.