Git::Wrapper::Plus::Versions - Analyze and compare git versions
version 0.004011
use Git::Wrapper::Plus::Versions; my $v = Git::Wrapper::Plus::Versions->new( git => $git_wrapper ); print $v->current_version; # Current V String. # Larger or equal to 1.5 if ( $v->newer_than('1.5') ) { } # Lesser than 1.5 if ( $v->older_than('1.5') ) { }
current_version
Reports the current git version.
git
newer_than
if ( $v->newer_than('1.5') ) { }
Reports if git is 1.5 or larger.
older_than
if ( $v->older_than('1.5') ) { }
Reports if git is <1.5
<1.5
REQUIRED: A Git::Wrapper compatible object.
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Git::Wrapper::Plus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Wrapper::Plus
CPAN shell
perl -MCPAN -e shell install Git::Wrapper::Plus
For more information on module installation, please visit the detailed CPAN module installation guide.