GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GIT::SUB (3)

.ds Aq ’

NAME

Git::Sub - git commands imported as System::Sub subs in the git:: namespace

CONTENTS

VERSION

version 0.130270

SYNOPSIS



    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;
    };



DESCRIPTION

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

AUTHOR

Olivier Mengue\k:'dolmen@cpan.org.

COPYRIGHT & LICENSE

Copyright X 2013 Olivier Mengue\k:'\h |\n:u.

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GIT::SUB (3) 2013-01-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.