1Config::GitLike::Git(3)User Contributed Perl DocumentatioCnonfig::GitLike::Git(3)
2
3
4

NAME

6       Config::GitLike::Git - load Git configuration files
7

SYNOPSIS

9           use Config::GitLike::Git;
10           my $config = Config::GitLike::Git->new;
11           $config->load("/path/to/repo");
12

DESCRIPTION

14       This is a modification of Config::GitLike to look at the same locations
15       that Git writes to. Unlike with Config::GitLike, you do not need to
16       pass a confname to its constructor. This module also enables the
17       Config::GitLike option to maintain git compatibility when reading and
18       writing variables.
19
20       "load" in Config::GitLike should be passed path to the top level of a
21       git repository -- this defaults to the current directory.  It will
22       append ".git" as necessary.  It supports both bare and non-bare
23       repositories.
24

METHODS

26       This module overrides these methods from "Config::GitLike":
27
28   dir_file
29       The per-directory configuration file is .git/config
30
31   user_file
32       The per-user configuration file is ~/.gitconfig
33
34   global_file
35       The per-host configuration file is /etc/gitconfig
36
37   is_git_dir
38       Returns true if a file contains the necessary files (as git would
39       reckon it) for the path to be a git repository.
40
41   load_dirs
42       Loads the relevant .git/config file.
43

SEE ALSO

45       Config::GitLike
46

LICENSE

48       You may modify and/or redistribute this software under the same terms
49       as Perl 5.8.8.
50
52       Copyright 2010 Best Practical Solutions, LLC
53

AUTHORS

55       Alex Vandiver <alexmv@bestpractical.com>, Christine Spang
56       <spang@bestpractical.com>
57
58
59
60perl v5.28.1                      2015-12-28           Config::GitLike::Git(3)
Impressum