Git::Repository::Plugin::Info - Information about a Git::Repository
use Git::Repository 'Info'; my $r = Git::Repository->new(); $r->is_bare(); $r->has_tag('some_tag'); $r->has_branch('some_branch');
Adds several methods to Git::Repository objects to check if a Git reference exists.
Check if repository is a bare repository.
Check if $ref_name exists in the Git::Repository.
$ref_name
Check if a branch named $branch_name exists in the Git::Repository.
$branch_name
Check if tag named $tag_name exists in the Git::Repository.
$tag_name
Copyright (C) Nathaniel Nutter.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Nathaniel Nutter <nnutter@cpan.org>
To install Git::Repository::Plugin::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Repository::Plugin::Info
CPAN shell
perl -MCPAN -e shell install Git::Repository::Plugin::Info
For more information on module installation, please visit the detailed CPAN module installation guide.