Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
UGitRepository Class Reference
+ Inheritance diagram for UGitRepository:

Public Member Functions

 getUntrackedFiles ()
 Returns list of untracked files in repo.
 
 getModifiedFiles ()
 Returns list of modified files in repo.
 
 getChangesInFile ($filename)
 
 getChangesInCommit ($commitHash)
 
 getRemoteUrl ()
 Returns the remote URL.
 
 ignoreFiles ($files)
 Ignore file(s).
 
 getCommits ()
 
 getNonPushedCommitHash ($branch="master")
 
 setUpstream ($branch="master")
 
 getRemoteBranchs ()
 

Static Public Member Functions

static init ($directory, array $params=NULL)
 Init repo in directory.
 

Protected Member Functions

 run ($cmd)
 Runs command.
 
 _processCommand (array $args)
 

Detailed Description

Definition at line 9 of file UGitRepository.php.

Member Function Documentation

◆ _processCommand()

_processCommand ( array  $args)
protected

Definition at line 64 of file UGitRepository.php.

◆ getChangesInCommit()

getChangesInCommit (   $commitHash)

Definition at line 130 of file UGitRepository.php.

◆ getChangesInFile()

getChangesInFile (   $filename)

Definition at line 119 of file UGitRepository.php.

◆ getCommits()

getCommits ( )

Definition at line 177 of file UGitRepository.php.

◆ getModifiedFiles()

getModifiedFiles ( )

Returns list of modified files in repo.

Returns
string[]|NULL NULL => no files modified

Definition at line 108 of file UGitRepository.php.

◆ getNonPushedCommitHash()

getNonPushedCommitHash (   $branch = "master")

Definition at line 198 of file UGitRepository.php.

◆ getRemoteBranchs()

getRemoteBranchs ( )

Definition at line 213 of file UGitRepository.php.

◆ getRemoteUrl()

getRemoteUrl ( )

Returns the remote URL.

Returns
string

Definition at line 146 of file UGitRepository.php.

◆ getUntrackedFiles()

getUntrackedFiles ( )

Returns list of untracked files in repo.

Returns
string[]|NULL NULL => no files untracked

Definition at line 97 of file UGitRepository.php.

◆ ignoreFiles()

ignoreFiles (   $files)

Ignore file(s).

git update-index --assume-unchanged <file>

Parameters
$filesstring|string[]
Exceptions

Cz\Git\GitException

Returns
self

Definition at line 168 of file UGitRepository.php.

◆ init()

static init (   $directory,
array  $params = NULL 
)
static

Init repo in directory.

Parameters
string
array|NULL
Returns
self
Exceptions
GitException

Definition at line 38 of file UGitRepository.php.

◆ run()

run (   $cmd)
protected

Runs command.

Parameters
string|array
Returns
self
Exceptions

Cz\Git\GitException

Definition at line 19 of file UGitRepository.php.

◆ setUpstream()

setUpstream (   $branch = "master")

Definition at line 207 of file UGitRepository.php.


The documentation for this class was generated from the following file: