Git::Class::Worktree
use strict; use warnings; use Git::Class::Worktree; my $work = Git::Class::Worktree->new(path => 'path/to/somewhere'); $work->init; $work->add('.'); $work->commit; $work->git('ls-files'); # can run an arbitrary command
This is another (experimental) interface to git executable for convenience. Note that this will change the current directory to the path you specify when you create an object, and as of 0.03, it'll take you back to the previous current directory when you demolish the object.
git
is an accessor/mutator to determine if we should use Capture::Tiny to capture the output of git commands. If your web apps hang because of the capturing, set this to true to disable it.
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Git::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Class
CPAN shell
perl -MCPAN -e shell install Git::Class
For more information on module installation, please visit the detailed CPAN module installation guide.