composer update
This commit is contained in:
16
vendor/gitonomy/gitlib/doc/api/branch.rst
vendored
Normal file
16
vendor/gitonomy/gitlib/doc/api/branch.rst
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
Branch
|
||||
======
|
||||
|
||||
To access a *Branch*, starting from a repository object:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
$repository = new Gitonomy\Git\Repository('/path/to/repository');
|
||||
$branch = $repository->getReferences()->getBranch('master');
|
||||
|
||||
You can check is the branch is a local or remote one:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
$branch->isLocal();
|
||||
$branch->isRemote();
|
Reference in New Issue
Block a user