PHP Class Horde_Vcs_File_Git, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Chuck Hagenbuch ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Vcs_File_Base
显示文件 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_driver string The current driver.
$_revlist array The master list of revisions for this file.

Public Methods

Method Description
getBranch ( string $rev ) : array Returns all branches that contain a certain revision.
getBranchList ( ) TODO
getBranches ( ) TODO
getHashForRevision ( string $rev ) : string Get the hash name for this file at a specific revision.
getLastLog ( ) : Horde_Vcs_QuickLog_Git Returns a log object for the most recent log entry of this file.
getLog ( $rev = null ) TODO
getPath ( ) : string Return the "base" filename (i.e. the filename needed by the various command line utilities).
getPreviousRevision ( string $rev ) : string Returns the revision before the specified revision.
getRevision ( ) : string Returns the last revision of the current file on the HEAD branch.
getTags ( ) TODO
revisionCount ( ) TODO

Protected Methods

Method Description
_init ( )

Method Details

_init() protected method

protected _init ( )

getBranch() public method

Returns all branches that contain a certain revision.
public getBranch ( string $rev ) : array
$rev string A revision.
return array A list of branches with this revision.

getBranchList() public method

TODO
public getBranchList ( )

getBranches() public method

TODO
public getBranches ( )

getHashForRevision() public method

Get the hash name for this file at a specific revision.
public getHashForRevision ( string $rev ) : string
$rev string Revision string.
return string Commit hash.

getLastLog() public method

Returns a log object for the most recent log entry of this file.
public getLastLog ( ) : Horde_Vcs_QuickLog_Git
return Horde_Vcs_QuickLog_Git Log object of the last entry in the file.

getLog() public method

TODO
public getLog ( $rev = null )

getPath() public method

Return the "base" filename (i.e. the filename needed by the various command line utilities).
public getPath ( ) : string
return string A filename.

getPreviousRevision() public method

Returns the revision before the specified revision.
public getPreviousRevision ( string $rev ) : string
$rev string A revision.
return string The previous revision or null if the first revision.

getRevision() public method

Returns the last revision of the current file on the HEAD branch.
public getRevision ( ) : string
return string Last revision of the current file.

getTags() public method

TODO
public getTags ( )

revisionCount() public method

TODO
public revisionCount ( )

Property Details

$_driver protected_oe property

The current driver.
protected string $_driver
return string

$_revlist protected_oe property

The master list of revisions for this file.
protected array $_revlist
return array