Config::GitLike::Git(3pm) User Contributed Perl Documentation Config::GitLike::Git(3pm)NAME
Config::GitLike::Git - load Git configuration files
SYNOPSIS
use Config::GitLike::Git;
my $config = Config::GitLike::Git->new;
$config->load("/path/to/repo");
DESCRIPTION
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.
METHODS
This module overrides these methods from "Config::GitLike":
dir_file
The per-directory configuration file is .git/config
user_file
The per-user configuration file is ~/.gitconfig
global_file
The per-host configuration file is /etc/gitconfig
is_git_dir
Returns true if a file contains the necessary files (as git would reckon it) for the path to be a git repository.
load_dirs
Loads the relevant .git/config file.
SEE ALSO
Config::GitLike
LICENSE
You may modify and/or redistribute this software under the same terms as Perl 5.8.8.
COPYRIGHT
Copyright 2010 Best Practical Solutions, LLC
AUTHORS
Alex Vandiver <alexmv@bestpractical.com>, Christine Spang <spang@bestpractical.com>
perl v5.14.2 2012-02-16 Config::GitLike::Git(3pm)
Check Out this Related Man Page
Git::PurePerl(3pm) User Contributed Perl Documentation Git::PurePerl(3pm)NAME
Git::PurePerl - A Pure Perl interface to Git repositories
SYNOPSIS
my $git = Git::PurePerl->new(
directory => '/path/to/git/'
);
$git->master->committer;
$git->master->comment;
$git->get_object($git->master->tree);
DESCRIPTION
This module is a Pure Perl interface to Git repositories.
It was mostly based on Grit <http://grit.rubyforge.org/>.
METHODS
master
get_object
get_object_packed
get_object_loose
create_object
all_sha1s
MAINTAINANCE
This module is maintained in git at http://github.com/bobtfish/git-pureperl/ <http://github.com/bobtfish/git-pureperl/>.
Patches are welcome, please come speak to one of the Gitalist team on "#gitalist".
AUTHOR
Leon Brocard <acme@astray.com>
CONTRIBUTORS
Chris Reinhardt
Tomas (t0m) Doran
Dan (broquaint) Brook
Alex Vandiver
Dagfinn Ilmari Mannsaaker
COPYRIGHT
Copyright (C) 2008, Leon Brocard and the above mentioned contributors.
LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.14.2 2011-07-15 Git::PurePerl(3pm)
Does anyone have a list of key config files and the respective paths for HP-UX? Or does anyone know where I can get a list similar to this?
Thanks,
TOdd (0 Replies)
I'm looking for good ways to handle config generation. I have been rolling my own for a few years now, but I'm wondering if there is a better way and would like to get some advice from anyone who has any ideas or experience in doing this. Here are some things I want to achieve in generating... (1 Reply)
Hi,
I have a folder which contains multiple config.xml files and one input file, Please see the below format.
Config Files format looks like :-
<application name="SAMPLE-ARCHIVE">
<NVPairs name="Global Variables">
<NameValuePair>
<name>MIG_Host</name>
... (3 Replies)
Hi,
I have 2 perl SubRoutines (sub 1 and sub 2). I created two perl modules for these (Sub1.pm and Sub2.pm).
How can I include these in a config file (say Config.cfg) and call the config file in my main script Rename.pl to use the 2 subroutines?
Right now here are the content of Config.cfg... (1 Reply)
Hi All,
I am new to Unix scripting, I have requirement where I need to read the key value pair from config file.
Sample Config file:
Key(File Pattern) Value(File Directory location)
test /Users/Bkumar/Downloads/testdir
prod ... (1 Reply)
Hi All,
Can anyone please explain me how to read data from config file in Perl.
Suppose i have a config file named cfile. The data in config file is
name=parth
lname=mittal
user=2007
hostname=fluoride
username=parthmittal
password=XXXXXX
account=unix
url=www.unix.com
... (2 Replies)
HI,
I want to append some configuration statements to the existing file in unix to it's 3 line , 7th line and 28 line.
There is a file generated by our system job, to this I need to add some lines as mentioned below.
DIR=/usr/CDR - line 3
Source=/usr/src - line 7
Target=/usr/tgt - line... (2 Replies)
Hello Experts,
Can anybody assist me in writing a code to do the following:
I have a file present in the same directory from where this cod would run. The content of the file would be as below:
Config Filename: config_details.txt
Format:
Server_prefix,IP_of_server,username, password,... (1 Reply)