Skip to content
Read gitconfig and return a Hash of Hash.
Other Makefile
  1. Other 93.8%
  2. Makefile 6.2%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Git
t
.travis.yml
LICENSE
META6.json
Makefile
README.md

README.md

Git::Config

Build Status

Read gitconfig and return a Hash of Hash.

SYNOPSIS

use Git::Config;

my $git-user = git-config<user><name>;
my $remote-repo = git-config('.git/config'){'remote "origin"'}<url>;

for git-config().seach-path -> {
    say "looking for a git config in " ~ .Str;
}

say "found a git config at " ~ git-config().path;

Subs

sub git-config(IO::Path $file? --> Hash)

The returned Hash got an anonymous role mixed in providing the method path pointing to the location of the git config file that was read. The method search-path that is returning a list of paths, containing the paths a git config file was searched in.

Grammars

grammar Config
You can’t perform that action at this time.