PHP Class SebastianBergmann\Git\Git

Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( string $repositoryPath )
checkout ( string $revision )
getCurrentBranch ( ) : string
getDiff ( string $from, string $to ) : string
getRevisions ( ) : array
isWorkingCopyClean ( ) : boolean

Protected Methods

Method Description
execute ( string $command )

Method Details

__construct() public method

public __construct ( string $repositoryPath )
$repositoryPath string

checkout() public method

public checkout ( string $revision )
$revision string

execute() protected method

protected execute ( string $command )
$command string

getCurrentBranch() public method

public getCurrentBranch ( ) : string
return string

getDiff() public method

public getDiff ( string $from, string $to ) : string
$from string
$to string
return string

getRevisions() public method

public getRevisions ( ) : array
return array

isWorkingCopyClean() public method

public isWorkingCopyClean ( ) : boolean
return boolean