perl: move CPAN loader wrappers to another namespace
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 14 Feb 2018 22:21:40 +0000 (22:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Feb 2018 18:58:00 +0000 (10:58 -0800)
commit87b8b0275293ca84b7ce88d48c024dce09a7097a
tree000917b00a4f1a46bcc976ac4031b7eee223244b
parentf4a635c466be1d318d9b6f51db2edd88cc0c9fb0
perl: move CPAN loader wrappers to another namespace

Move the Git::Error and Git::Mail::Address wrappers to the
Git::LoadCPAN::Loader::* namespace, e.g. Git::LoadCPAN::Error, that
module will then either load Error from CPAN (if installed on the OS),
or use Git::FromCPAN::Error.

When I added the Error wrapper in 20d2a30f8f ("Makefile: replace
perl/Makefile.PL with simple make rules", 2017-12-10) I didn't think
about how confusing it would be to have these modules sitting in the
same tree as our normal modules. Let's put these all into
Git::{Load,From}CPAN::* to clearly distinguish them from the rest.

This also makes things a bit less confusing since there was already a
Git::Error namespace ever since 8b9150e3e3 ("Git.pm: Handle failed
commands' output", 2006-06-24).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/examples/git-difftool.perl
git-send-email.perl
perl/Git.pm
perl/Git/LoadCPAN/Error.pm [moved from perl/Git/Error.pm with 78% similarity]
perl/Git/LoadCPAN/Mail/Address.pm [moved from perl/Git/Mail/Address.pm with 69% similarity]