App-cpangitify

 view release on metacpan or  search on metacpan

bin/cpangitify  view on Meta::CPAN

Default branch.  As on 0.18 this is C<main> by default.  Previously the old
git default was used.

=head2 --help | -h

Print out help and exit.

=head2 --version

Print out version and exit.

=head1 CAVEATS

Each commit belongs to the CPAN author who submitted the corresponding release,
therefore C<git blame> may not be that useful for the imported portion of
your new repository history.

The commits are ordered by date, so where there are interleaving of releases
that belong to development and production branches this simple minded script
will probably do the wrong thing.

Patches are welcome.

=head1 SEE ALSO

Here are some similar projects:

=over 4

=item

L<Git::CPAN::Patch>

Comes with a C<git cpan import> which does something similar.  With this
incantation I was able to get a repository for L<YAML> (including history,
but without authors and without the correct dates):

 % mkdir YAML
 % git init .
 % git cpan import --backpan YAML
 % git merge remotes/cpan/master

One advantage here over C<cpangitify> is that you should then later be able to
import/merge future CPAN releases into yours.  L<Git::CPAN::Patch> also has a bunch of
other useful tools for creating and submitting patches and may be worth
checking out.

If you do an internet search for this sort of thing you may see references
to C<git-backpan-init>, but this does not appear to be part of the
L<Git::CPAN::Patch> anymore (I believe C<git-import> with the C<--backpan>
option is the equivalent).

In general C<cpangitify> is a one trick poney (though good at that one thing),
and L<Git::CPAN::Patch> is a Batman's utility belt with documentation that
(for me at least) is pretty impenetrable.

=item

L<gitpan|https://github.com/gitpan>

Doesn't appear to have been updated in a number of years.

=item

L<ggoosen's cpan2git|https://github.com/ggoossen/cpan2git>

=back

The reason I am not using the latter two is that they are designed to
mirror the whole of CPAN/BackPAN, but I'm mostly just interested in one
or two distributions here and there.

=head1 AUTHOR

Author: Graham Ollis E<lt>plicease@cpan.orgE<gt>

Contributors:

Mohammad S Anwar (MANWAR)

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2013-2024 by Graham Ollis.

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

=cut



( run in 1.177 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )