Config::GitLike::Git - load Git configuration files
use Config::GitLike::Git; my $config = Config::GitLike::Git->new; $config->load("/path/to/repo");
This is a modification of Config::GitLike to look at the same locations that Git writes to. Unlike with Config::GitLike, you do not need to pass a confname to its constructor. This module also enables the Config::GitLike option to maintain git compatibility when reading and writing variables.
"load" in Config::GitLike should be passed path to the top level of a git repository -- this defaults to the current directory. It will append .git as necessary. It supports both bare and non-bare repositories.
.git
This module overrides these methods from Config::GitLike:
Config::GitLike
The per-directory configuration file is .git/config
The per-user configuration file is ~/.gitconfig
The per-host configuration file is /etc/gitconfig
Returns true if a file contains the necessary files (as git would reckon it) for the path to be a git repository.
Loads the relevant .git/config file.
You may modify and/or redistribute this software under the same terms as Perl 5.8.8.
Copyright 2010 Best Practical Solutions, LLC
Alex Vandiver <alexmv@bestpractical.com>, Christine Spang <spang@bestpractical.com>
To install Config::GitLike, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::GitLike
CPAN shell
perl -MCPAN -e shell install Config::GitLike
For more information on module installation, please visit the detailed CPAN module installation guide.