Simple, hacky way to use git from Perl 6
Perl 6 Perl
Switch branches/tags
Nothing to show
Pull request Compare This branch is 39 commits ahead of perlpilot:master.
Latest commit d1084d4 Jul 31, 2017 @nicqrocks nicqrocks Merge pull request #3 from zengargoyle/patch-3
Bump version


Build Status

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