An instance of this class can be handled as OO interface for a Git repository.
[line 58]
[line 65]
VersionControl_Git __construct( [string $reposDir = './'])
null checkout( mixed $object)
Checking out a path is not supported currently.
null createClone( string $repository, [bool $isBare = false], [string $directory = null])
It is wrapper of "git clone" command.
array getBranches( )
VersionControl_Git_Util_Command getCommand( string $subCommand)
VersionControl_Git_Util_RevListFetcher getCommits( [mixed $object = 'master'], [int $maxResults = 100], [int $offset = 0])
string getCurrentBranch( )
string getDirectory( )
string getGitCommandPath( )
string getGitVersion( )
array getHeadCommits( )
array getRemoteBranches( [string $name = 'origin'])
VersionControl_Git_Util_RevListFetcher getRevListFetcher( )
array getTags( )
VersionControl_Git_Object_Tree getTree( mixed $object)
null initialRepository( [bool $isBare = false])
This method is available for backward compatibility.
null initRepository( [bool $isBare = false])
It is wrapper of "git init" command.
null setGitCommandPath( string $path)