Git::Sub(3pm)

Git::Sub3pm

Git commands imported as system::sub subs in the git:: namespace

Usage

    use Git::Sub qw(clone tag push);
    # Git commands are now Perl subs
    git::clone 'git://github.com/dolmen/p5-Git-Sub.git';
    git::tag -a => -m => "Release v$version", "v$version";
    git::push qw(--tags origin master);
    # Commands names with '-' are imported with '_'
    my $master = git::rev_parse 'release';
    # Return in list context is lines (see System::Sub)
    say for git::ls_tree 'master';
    # Process lines using a callback
    git::ls_tree 'master' => sub {
        my ($mode, $type, $object, $file) = split;
        say $file;
    };

Version

version 0.163320

Overview

Use git <http://www.git-scm.com> commands easily from your Perl program. Each git command is imported as a System::Sub DWIM sub.

Examples

•

The release script <https://github.com/dolmen/angel-PS1/blob/devel/dist> of my angel-PS1 <https://github.com/dolmen/angel-PS1> project.

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13

Author

Olivier Mengué, "[email protected]".

From libgit-sub-perl 0.163320-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.