Skip to content

holygeek/add2git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

add2git - automatically commit your site_perl directory after any update via cpan/cpanm

I use perl via perlbrew and wanted a way to automatically manage all the perl
packages that I install via cpan, or cpanm into a git repository. Thus born
add2git.

How to use it:

1. Initialize and commit a git repo in your site_perl directory, say
   $HOME/perl5/perlbrew/perls, or $HOME/perl5/perlbrew/perls/perl-$version/ if
   you want to separate the git repositories by the perl version.

2. Start using add2git for installing your cpan packages like this:

    $ add2git --via cpanm Foo::Bar
    $ add2git --via cpan Foo::Bar
    $ add2git --via 'cpanp i' Foo::Bar

add2git aborts the mission if the git repository is dirty.

See "add2git --help" for more details

About

automatically commit your site_perl directory after any update via cpan/cpanm/cpanp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages