Dist::Zilla::Util::Git::Wrapper - Vivify a Git::Wrapper instance for Dist::Zilla
version 0.004002
use Dist::Zilla::Util::Git::Wrapper; my $wrapper = Dist::Zilla::Util::Git::Wrapper->new( zilla => $self->zilla ); $wrapper->log(); # etc.
Yes, this does very little, but simply serves as an abstraction for getting a Git::Wrapper object from git, mostly, because everyone remembers $self->zilla, but you have to RTFM and go source diving to know about $self->zilla->root
$self->zilla
$self->zilla->root
This is a simple straight forward way of doing what you want with the least mental overhead.
Everything else is just proxy methods for git
git
This is a more I.O.C approach to my swathes of Dist::Zilla::Role::Git::LocalRepository stuff, which got so complex with dependency management my head exploded.
Dist::Zilla::Role::Git::LocalRepository
zilla
Parameter lazily required, and should be a Dist::Zilla object ( or compatible )
A Git::Wrapper instance. Optional, and pointless to specify manually, but could be useful for testing where you don't want Dist::Zilla
Vivified if not specified based on the zilla parameter.
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 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.
To install Dist::Zilla::Util::Git::Wrapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Util::Git::Wrapper
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Util::Git::Wrapper
For more information on module installation, please visit the detailed CPAN module installation guide.