Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Git::Wrapper::Plus::Versions - Analyze and compare git versions
VERSION
version 0.003101
SYNOPSIS
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') ) {
}
METHODS
current_version
Reports the current git
version.
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
ATTRIBUTES
git
REQUIRED: A Git::Wrapper compatible object.
AUTHOR
Kent Fredric <kentfredric@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 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.