Overview

Namespaces

  • Cz
    • Git

Classes

  • Git

Interfaces

  • IGit

Exceptions

  • GitException
  • Overview
  • Namespace
  • Class

Interface IGit

Direct known implementers

Cz\Git\Git
Namespace: Cz\Git
Located at IGit.php
Methods summary
public
# tag( string $name )

Creates a tag.

Creates a tag.

Parameters

$name

Throws

Cz\Git\GitException
public
# merge( string $branch, array|null $options = NULL )

Merges branches.

Merges branches.

Parameters

$branch
$options

Throws

Cz\Git\GitException
public
# branchCreate( string $name, boolean $checkout = FALSE )

Creates new branch.

Creates new branch.

Parameters

$name
$checkout

Throws

Cz\Git\GitException
public
# branchRemove( string $name )

Removes branch.

Removes branch.

Parameters

$name

Throws

Cz\Git\GitException
public string
# branchName( )

Gets name of current branch

Gets name of current branch

Returns

string

Throws

Cz\Git\GitException
public
# checkout( string $name )

Checkout branch.

Checkout branch.

Parameters

$name

Throws

Cz\Git\GitException
public
# remove( string|string[] $file )

Removes file(s).

Removes file(s).

Parameters

$file

Throws

Cz\Git\GitException
public
# add( string|string[] $file )

Adds file(s).

Adds file(s).

Parameters

$file

Throws

Cz\Git\GitException
public
# rename( string|string[] $file, string|null $to = NULL )

Renames file(s).

Renames file(s).

Parameters

$file
array('from' => 'to', ...) || (from, to)
$to

Throws

Cz\Git\GitException
public
# commit( string $message, string[] $params = NULL )

Commits changes

Commits changes

Parameters

$message
$params
=> value

Throws

Cz\Git\GitException
public boolean
# isChanges( )

Exists changes?

Exists changes?

Returns

boolean
czproject/git-php v1.0.1 API documentation API documentation generated by ApiGen