Git::Class - a simple git wrapper to capture output


Git-Class documentation Contained in the Git-Class distribution.

Index


Code Index:

NAME

Top

Git::Class - a simple git wrapper to capture output

SYNOPSIS

Top

  use strict;
  use warnings;
  use Git::Class;

  my $git = Git::Class::Cmd->new;
  my $worktree = $git->clone('git://github.com/charsbar/git-class.git');
  $worktree->add('myfile');
  $worktree->commit({ message => 'a commit message' });
  $worktree->push;

  my $captured = $worktree->status; # as a whole
  my @captured = $worktree->status; # split by "\n"

DESCRIPTION

Top

This is a simple wrapper of a git executable. The strength is that you can run a git command and capture the output in a simple and more portable way than using open to pipe (which is not always implemented fully).

As of this writing, most of the git commands simply returns the output, but this will be changed in the near future, especially when called in the list context, where we may want sort of proccessed data like what files are affected etc.

SEE ALSO

Top

Git::Class::Cmd

Git::Class::Worktree

AUTHOR

Top

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Top


Git-Class documentation Contained in the Git-Class distribution.

package Git::Class;

use Any::Moose; extends 'Git::Class::Cmd';

our $VERSION = '0.09';

1;

__END__