04 Mar 2017 02:18:45 UTC
- Distribution: Dist-Zilla-Plugin-Git-NextRelease
- Module version: 0.004001
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (548 / 0 / 0)
- KwaliteeBus factor: 0
- 80.73% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (28.21KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionKENTNL Kent Fredric (PAUSE Custodial Account)
Why not adopt me?This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.
- COPYRIGHT AND LICENSE
Dist::Zilla::Plugin::Git::NextRelease - Use time-stamp from Git instead of process start time.
This module acts as a moderately thin wrapper to
[NextRelease]so that the time-stamps produced are generated by asking
gitfor the time-stamp of the current branch.
If you always require a specific branch for generating time-stamps, it can be specified as a parameter.
+branch = master
+default_branch = master
( The latter only having impact in detached-head conditions )
This exists mostly because of my extensive use of
[Git::CommitBuild], to provide a commit series for both releases, and builds of all changes/commits in order to push them to Travis for testing. ( Mostly, because testing a build branch is substantially faster than testing a master that requires
Dist::Zilla, especially if you're doing "Fresh install" testing like I am. )
This is the sole method of
[NextRelease]that we override, in order for it to inject the right things.
This method basically returns the date string to append to the Changes header.
If set, always use the specified branch to determine time-stamp.
Default value is resolved from determining "current" branch.
If you want being on a branch to always resolve to that branch, but you still want a useful behavior when on a detached head, specifying this value means that on a detached head, the stated branch will be used instead.
[Git::NextRelease]enhances and adds a few features of
%d- A CLDR formatter of the
HEADtimestamp. ( Original uses simply
%H- The SHA1 of
%h- The SHA1 of
HEADshortened to 7 characters.
Kent Fredric <email@example.com>
This software is copyright (c) 2017 by Kent Fredric <firstname.lastname@example.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Dist::Zilla::Plugin::Git::NextRelease, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Dist::Zilla::Plugin::Git::NextRelease
For more information on module installation, please visit the detailed CPAN module installation guide.