27 Dec 2011 23:09:56 UTC
- Distribution: Git-XS
- Module version: 0.02
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (91 / 231 / 15)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (3.12MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionINGY Ingy döt Net
Git::XS - Perl XS binding to libgit2
use Git::XS; my $git = Git::XS->new( repo => "path/to/git/repo", ); $git->init; print $git->status; $git->add('file.name'); $git->commit(-m => 'It works'); $git->fetch; $git->push('--all');
This module is a Perl binding to libgit2. It attempts to make a clean OO API for dealing with git repositories from Perl. It should be very fast.
WARNING: This module is still in the "proof of concept" phase. Come back later.
So far new() and init() are working. Kind of.
Find me online if you have good ideas for this module.
You can install this module like any other CPAN module, but you will need 2 programs in your PATH:
git - to clone the libgit2 repository from GitHub cmake - to build libgit2
In the future, this module might use your system's copy of libgit2.
- Git::XS->new(repo => $repo)
Create a new Git::XS object for dealing with a git repository.
Initialize a repo if it doesn't exist. You can pass '-bare' to create a bare repo.
Ingy döt Net <firstname.lastname@example.org>
Copyright (c) 2011. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 64:
You forgot a '=back' before '=head1'