Git::Version - Git version objects
use Git::Version; my $v = Git::Version->new( `git --version` ); print "You've got an old git" if $v lt '1.6.5';
Git::Version offers specialized version objects that can compare strings corresponding to a Git version number.
Git::Version
The actual comparison is handled by Git::Version::Compare, so the strings can be version numbers, tags from git.git or the output of git version or git describe.
git.git
git version
git describe
my $v = Git::Version->new(`git --version`);
Creates a new Git::Version object from a string.
Git::Version::Compare.
Philippe Bruhat (BooK) <book@cpan.org>
Copyright 2016 Philippe Bruhat (BooK), all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Git::Version, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Version
CPAN shell
perl -MCPAN -e shell install Git::Version
For more information on module installation, please visit the detailed CPAN module installation guide.