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_Git

Horde_Vcs_Git implementation.

Constructor args:

'sourceroot': The source root for this repository
'paths': Hash with the locations of all necessary binaries: 'git'
Horde_Vcs_Base
Extended by Horde_Vcs_Git
Package: Vcs
Author: Chuck Hagenbuch chuck@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Vcs/Git.php
Methods summary
public
# __construct( mixed $params = array() )

Throws

Horde_Vcs_Exception

Overrides

Horde_Vcs_Base::__construct()
public boolean
# isValidRevision( mixed $rev )

TODO

TODO

Parameters

$rev
The purported revision string.

Returns

boolean
True if a valid revision string.
public
# isFile( mixed $where, mixed $branch = null )

TODO

TODO

Overrides

Horde_Vcs_Base::isFile()
public
# getCommand( )

TODO

TODO

public array(resource,
# runCommand( string $args )

Runs a git commands.

Runs a git commands.

Uses proc_open() to properly catch errors and returns a stream with the command result. fclose() must be called manually on the returned stream and proc_close() on the resource, once the output stream has been finished reading.

Parameters

$args
Any arguments for the git command. Must be escaped.

Returns

array(resource,

stream) The process resource and the command output.

Throws

Horde_Vcs_Exception

if command cannot be executed or returns an error.

public
# annotate( mixed $fileob, mixed $rev )

TODO

TODO

Throws

Horde_Vcs_Exception

Overrides

Horde_Vcs_Base::annotate()
public resource
# checkout( string $file, string $rev )

Function which returns a file pointing to the head of the requested revision of a file.

Function which returns a file pointing to the head of the requested revision of a file.

Parameters

$file
<p>$fullname Fully qualified pathname of the desired file to checkout</p>
$rev
Revision number to check out

Returns

resource
A stream pointer to the head of the checkout.

Throws

Horde_Vcs_Exception

Overrides

Horde_Vcs_Base::checkout()
public array
# getRevisionRange( Horde_Vcs_File_Base $file, string $r1, string $r2 )

Create a range of revisions between two revision numbers.

Create a range of revisions between two revision numbers.

Parameters

$file
The desired file.
$r1
The initial revision.
$r2
The ending revision.

Returns

array

The revision range, or empty if there is no straight line path between the revisions.

Overrides

Horde_Vcs_Base::getRevisionRange()
public string
# abbrev( string $rev )

Returns an abbreviated form of the revision, for display.

Returns an abbreviated form of the revision, for display.

Parameters

$rev
The revision string.

Returns

string
The abbreviated string.

Overrides

Horde_Vcs_Base::abbrev()
public
# getBranchList( )

TODO

TODO

public
# getDefaultBranch( )

Overrides

Horde_Vcs_Base::getDefaultBranch()
Methods inherited from Horde_Vcs_Base
assertValidRevision(), availableDiffTypes(), cmp(), diff(), getDirectory(), getFile(), getPatchset(), getPath(), getUsers(), hasFeature()
Properties summary
public string $version

The git version

The git version

#
Properties inherited from Horde_Vcs_Base
$sourceroot
API documentation generated by ApiGen