1Git::CPAN::Patch(3) User Contributed Perl Documentation Git::CPAN::Patch(3)
2
3
4
6 Git::CPAN::Patch - Patch CPAN modules using Git
7
9 # import a module:
10
11 % mkdir Foo-Bar
12 % cd Foo-Bar
13 % git cpan-init Foo::Bar
14
15
16
17 # hack and submit to RT
18
19 # it's probably best to work in a branch
20 % git checkout -b blah
21
22 hack lib/Foo/Bar.pm
23
24 % git commit -am "blah"
25 % git cpan-sendpatch --compose
26
27
28
29 # update the module
30 # this automatically rebases the current branch
31 % git cpan-update
32
34 Git::CPAN::Patch provides a suite of git commands aimed at making
35 trivially easy the process of grabbing any distribution off CPAN,
36 stuffing it in a local git repository and, once gleeful hacking has
37 been perpetrated, sending back patches to its maintainer.
38
40 git-cpan-init
41 Create a git repository for a CPAN module
42
43 git-backpan-init
44 Initialize a repository for a CPAN module with full history from
45 the backpan.
46
47 git-cpan-import
48 Import a module into a git repository.
49
50 git-cpan-last-version
51 Report the last imported version
52
53 git-cpan-send-email
54 Use "git-send-email" to submit patches to CPAN RT
55
56 git-cpan-sendpatch
57 Create patch files and submit then to RT
58
59 git-cpan-update
60 Import the latest version of a module and rebase the current branch
61
62 git-cpan-format-patch
63 Format patches using "cpan/master" as the origin reference
64
65 git-cpan-squash
66 Combine multiple commits into one patch
67
68 git-cpan-which
69 Report the managed module
70
72 This document describes Git::CPAN::Patch version 0.2.1
73
75 Please report any bugs or feature requests to
76 "bug-git-cpan-patch@rt.cpan.org", or through the web interface at
77 <http://rt.cpan.org>.
78
80 Yanick Champoux "<yanick@cpan.org>"
81
82 Yuval Kogman "<nothingmuch@woobling.org>"
83
85 This module is free software; you can redistribute it and/or modify it
86 under the same terms as Perl itself. See perlartistic.
87
89
90 git-backpan-init
91 git-cpan-import
92 git-cpan-last-version
93 git-cpan-sendpatch
94 git-cpan-update
95 git-cpan-format-patch
96 git-cpan-init
97 git-cpan-send-email
98 git-cpan-squash
99 git-cpan-which
100
101 Articles
102 The set of scripts that would eventually become Git::CPAN::Patch were
103 first presented in the article CPAN Patching with Git, published in
104 issue 5.1 of The Perl Review <http://theperlreview.com>.
105
106 Git::CPAN::Patch on the Net
107 On CPAN
108 http://search.cpan.org/dist/Git-CPAN-Patch
109
110 Bug tracker
111 http://rt.cpan.org/Public/Dist/Display.html?Name=Git-CPAN-Patch
112
113 Github git repository
114 web interface: http://github.com/yanick/git-cpan-patch
115
116 to clone:
117
118 $ git clone git://github.com/yanick/git-cpan-patch.git
119
120
121
122perl v5.12.0 2010-05-02 Git::CPAN::Patch(3)