PHP Interface Liip\RMT\VCS\VCSInterface

s
Afficher le fichier Open project: liip/rmt Interface Usage Examples

Méthodes publiques

Méthode Description
createTag ( string $tagName ) Create a new tag at the current position
getAllModificationsSince ( string $tag, boolean $color = true, boolean $noMergeCommits = false ) : array Return the list of all modifications from the given tag until now
getCurrentBranch ( ) Return the current branch
getLocalModifications ( ) : array Return local modification
getModifiedFilesSince ( string $tag ) : array Return the list of all modified files from the given tag until now The result is an array with the filename as key and the status as value.
getTags ( ) : array Return all tags of the project
publishChanges ( string | null $remote = null ) Publish local modification
publishTag ( string $tagName, string | null $remote = null ) Publish a new created tag
saveWorkingCopy ( string $commitMsg = '' ) : mixed Save the local modifications (commit)

Method Details

createTag() public méthode

Create a new tag at the current position
public createTag ( string $tagName )
$tagName string

getAllModificationsSince() public méthode

Return the list of all modifications from the given tag until now
public getAllModificationsSince ( string $tag, boolean $color = true, boolean $noMergeCommits = false ) : array
$tag string
$color boolean
$noMergeCommits boolean
Résultat array

getCurrentBranch() public méthode

Return the current branch
public getCurrentBranch ( )

getLocalModifications() public méthode

Return local modification
public getLocalModifications ( ) : array
Résultat array of local modification

getModifiedFilesSince() public méthode

Status is one of the following : M (modified), A (added), R (removed)
public getModifiedFilesSince ( string $tag ) : array
$tag string
Résultat array

getTags() public méthode

Return all tags of the project
public getTags ( ) : array
Résultat array

publishChanges() public méthode

Publish local modification
public publishChanges ( string | null $remote = null )
$remote string | null

publishTag() public méthode

Publish a new created tag
public publishTag ( string $tagName, string | null $remote = null )
$tagName string
$remote string | null

saveWorkingCopy() public méthode

Save the local modifications (commit)
public saveWorkingCopy ( string $commitMsg = '' ) : mixed
$commitMsg string
Résultat mixed