Git.php
Documentation
CodeIgniter Version
If you are using the CI version, odds are you will be working with the Git class. After loading the library, eg.
the Git class included only has two methods. After that point, you will be working with same methods as the normal version, so you can read down through all of that, too.
Existing Repository
This is an alias for GitRepo::__construct; see below.
Creating New Repository
This is an alias for GitRepo::create_new; see below.
Standard Version
Creating/Opening Repositories
If you are using the standard version, you will probably always be working directly with the GitRepo class. The CI folks will also need to know this stuff, too, though.
This creates a new git repository in $repo_path and then returns
an instance of GitRepo refering to it. Optionally, the second parameter sets
the source directory of the files to use.
This opens an existing git repository in $repo_path. The second parameter
decides if a new repository should be created if one doesn't already exist.
This is exactly identical to the constructor except that you call it on an already existing GitRepo object.
Running Commands
You can run any git command using the run method, or you can use one
of the handful of shortcut methods.