Kent Fredric │‫3﹪🔋

NAME

Git::Wrapper::Plus::Versions - Analyze and compare git versions

VERSION

version 0.004010

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.