Overview

Packages

  • None
  • Vcs

Classes

  • Horde_Vcs
  • Horde_Vcs_Base
  • Horde_Vcs_Cvs
  • Horde_Vcs_Directory_Base
  • Horde_Vcs_Directory_Cvs
  • Horde_Vcs_Directory_Git
  • Horde_Vcs_Directory_Rcs
  • Horde_Vcs_Directory_Svn
  • Horde_Vcs_File_Base
  • Horde_Vcs_File_Cvs
  • Horde_Vcs_File_Git
  • Horde_Vcs_File_Rcs
  • Horde_Vcs_File_Svn
  • Horde_Vcs_Git
  • Horde_Vcs_Log_Base
  • Horde_Vcs_Log_Cvs
  • Horde_Vcs_Log_Git
  • Horde_Vcs_Log_Rcs
  • Horde_Vcs_Log_Svn
  • Horde_Vcs_Patchset
  • Horde_Vcs_Patchset_Base
  • Horde_Vcs_Patchset_Cvs
  • Horde_Vcs_Patchset_Git
  • Horde_Vcs_Patchset_Svn
  • Horde_Vcs_QuickLog_Base
  • Horde_Vcs_QuickLog_Cvs
  • Horde_Vcs_QuickLog_Git
  • Horde_Vcs_QuickLog_Rcs
  • Horde_Vcs_QuickLog_Svn
  • Horde_Vcs_Rcs
  • Horde_Vcs_Svn
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Vcs_File_Git

Git file class.

Copyright 2008-2012 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.

Horde_Vcs_File_Base
Extended by Horde_Vcs_File_Git
Package: Vcs
Author: Chuck Hagenbuch chuck@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Vcs/File/Git.php
Methods summary
public string
# getRevision( )

Returns the last revision of the current file on the HEAD branch.

Returns the last revision of the current file on the HEAD branch.

Returns

string
Last revision of the current file.

Throws

Horde_Vcs_Exception

Overrides

Horde_Vcs_File_Base::getRevision()
public string
# getPreviousRevision( string $rev )

Returns the revision before the specified revision.

Returns the revision before the specified revision.

Parameters

$rev
A revision.

Returns

string
The previous revision or null if the first revision.

Overrides

Horde_Vcs_File_Base::getPreviousRevision()
public string
# getHashForRevision( string $rev )

Get the hash name for this file at a specific revision.

Get the hash name for this file at a specific revision.

Parameters

$rev
Revision string.

Returns

string
Commit hash.
public
# getBranchList( )

TODO

TODO

public array
# getBranch( string $rev )

Returns all branches that contain a certain revision.

Returns all branches that contain a certain revision.

Parameters

$rev
A revision.

Returns

array
A list of branches with this revision.
public string
# getPath( )

Return the "base" filename (i.e. the filename needed by the various command line utilities).

Return the "base" filename (i.e. the filename needed by the various command line utilities).

Returns

string
A filename.

Overrides

Horde_Vcs_File_Base::getPath()
public
# getBranches( )

TODO

TODO

Overrides

Horde_Vcs_File_Base::getBranches()
public
# getLog( mixed $rev = null )

TODO

TODO

Overrides

Horde_Vcs_File_Base::getLog()
public Horde_Vcs_QuickLog_Git
# getLastLog( )

Returns a log object for the most recent log entry of this file.

Returns a log object for the most recent log entry of this file.

Returns

Horde_Vcs_QuickLog_Git
Log object of the last entry in the file.

Throws

Horde_Vcs_Exception
public
# revisionCount( )

TODO

TODO

Overrides

Horde_Vcs_File_Base::revisionCount()
public
# getTags( )

TODO

TODO

Overrides

Horde_Vcs_File_Base::getTags()
Methods inherited from Horde_Vcs_File_Base
__construct(), __sleep(), applySort(), getBlob(), getFileName(), getSourcerootPath(), isDeleted(), setRepository(), sortByAge(), sortByName(), sortByRevision()
API documentation generated by ApiGen