
Git::CPAN::Patch - Patch CPAN modules using Git

# import a module:
% mkdir Foo-Bar
% cd Foo-Bar
% git cpan-init Foo::Bar
# hack and submit to RT
# it's probably best to work in a branch
% git checkout -b blah
hack lib/Foo/Bar.pm
% git commit -am "blah"
% git cpan-sendpatch --compose
# update the module
# this automatically rebases the current branch
% git cpan-update

Git::CPAN::Patch provides a suite of git commands aimed at making trivially easy the process of grabbing any distribution off CPAN, stuffing it in a local git repository and, once gleeful hacking has been perpetrated, sending back patches to its maintainer.

Create a git repository for a CPAN module
Initialize a repository for a CPAN module with full history from the backpan.
Import a module into a git repository.
Report the last imported version
Use git-send-email to submit patches to CPAN RT
Create patch files and submit then to RT
Import the latest version of a module and rebase the current branch
Format patches using cpan/master as the origin reference
Combine multiple commits into one patch
Report the managed module

This document describes Git::CPAN::Patch version 0.1.7

Please report any bugs or feature requests to bug-git-cpan-patch@rt.cpan.org, or through the web interface at http://rt.cpan.org.

Yanick Champoux <yanick@cpan.org>
Yuval Kogman <nothingmuch@woobling.org>

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

The set of scripts that would eventually become Git::CPAN::Patch were first presented in the article CPAN Patching with Git, published in issue 5.1 of The Perl Review.