Simple, hacky way to use git from Perl 6
Perl6 Perl
Pull request Compare This branch is 26 commits ahead of perlpilot:master.


Hacky way to use git from Perl 6 "inspired" by Perl 5's version of the module of the same name. Originally made by PerlPilot.


my $git =
    git-executable     => '/path/to/git',   # optional
    gitdir             => '/foo/bar',

$git.version;       # version of git being used
$git.gitdir;        # path to git repo


#!/usr/bin/env perl6

use Git::Wrapper;

my $git = gitdir => "/path/to/existing/dir" );
my @log = $git.log;

for @log -> $l {
    say "{$} {$} {$l.summary}";