NAME

Git::Wrapper - wrap git(7) command-line interface

VERSION

Version 0.001

SYNOPSIS

my $git = Git::Wrapper->new('/var/foo');

$git->commit(...)
$git->log

METHODS

Except as documented, every git subcommand is available as a method on a Git::Wrapper object.

The first argument should be a hashref containing options and their values. Boolean options are either true (included) or false (excluded). The remaining arguments are passed as ordinary command arguments.

$git->commit({ all => 1, message => "stuff" });

$git->checkout("mybranch");

Output is available as an array of lines, each chomped.

@sha1s_and_titles = $git->rev_list({ all => 1, pretty => 'oneline' });

This is intentionally minimal; I don't know yet what kind of post-processing will be useful. Expect this to change in future releases.

new

my $git = Git::Wrapper->new($dir);

dir

print $git->dir; # /var/foo

AUTHOR

Hans Dieter Pearcey, <hdp@cpan.org>

BUGS

Please report any bugs or feature requests to bug-git-wrapper@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2008 Hans Dieter Pearcey, All Rights Reserved.

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