The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Git::Version - Git version objects

SYNOPSIS

    use Git::Version;

    my $v = Git::Version->new( `git --version` );
    print "You've got an old git" if $v lt '1.6.5';

DESCRIPTION

Git::Version offers specialized version objects that can compare strings corresponding to a Git version number.

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.

METHODS

new

    my $v = Git::Version->new(`git --version`);

Creates a new Git::Version object from a string.

SEE ALSO

Git::Version::Compare.

AUTHOR

Philippe Bruhat (BooK) <book@cpan.org>

COPYRIGHT

Copyright 2016 Philippe Bruhat (BooK), all rights reserved.

LICENSE

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