NAME
cpangit-add - import CPAN packages to local CPAN trees
NAME
cpangit-add - import CPAN distributions into local archive branches
USAGE
cpangit-add [OPTIONS] [MODULE::NAME [VERSION]] ...
cpangit-add [OPTIONS] PATH/TO/CPANFILE
cpangit-add [OPTIONS] --local PATH_OR_MODULE_NAME
The first two forms add one or more modules, and their dependencies, to a mirror branch. If the branch is the working branch, this will add the files to the index for you to review and commit. Otherwise the files are added in an automatic commit on that branch.
When '--local' is used, locate a distribution archive, unpack it under author L/LO/LOCAL, and update the package index to use this dist.
OPTIONS
- --git-dir=PATH
-
Path to the Git repository of CPAN::InGit. The default is GIT_DIR from the environment, or any git repo above "."
- --branch=BRANCH_NAME
-
Branch name to commit the changes to. If this is the checked-out branch, the index will be updated but no commit will be generated.
- --local
-
Unpack one distribution into
authors/id/L/LO/LOCAL/for local patching. Only one argument is permitted, and in addition to a module name, it may be a file path of a distribution archive. For module names, the distribution will be resolved by the usual means, possibly using a distribution that was already indexed in this branch under a different author. The action fails if the local-author distribution directory already exists.
VERSION
version 0.007
AUTHOR
Michael Conrad <mike@nrdvana.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Michael Conrad, and IntelliTree Solutions.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.