1Config::GitLike::Git(3)User Contributed Perl DocumentatioCnonfig::GitLike::Git(3)
2
3
4
6 Config::GitLike::Git - load Git configuration files
7
9 use Config::GitLike::Git;
10 my $config = Config::GitLike::Git->new;
11 $config->load("/path/to/repo");
12
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
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
38 Config::GitLike
39
41 You may modify and/or redistribute this software under the same terms
42 as Perl 5.8.8.
43
45 Copyright 2010 Best Practical Solutions, LLC
46
48 Alex Vandiver <alexmv@bestpractical.com>, Christine Spang
49 <spang@bestpractical.com>
50
51
52
53perl v5.12.1 2010-06-28 Config::GitLike::Git(3)