PHP Интерфейс Liip\RMT\VCS\VCSInterface

s
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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)

Описание методов

createTag() публичный Метод

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

getAllModificationsSince() публичный Метод

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
Результат array

getCurrentBranch() публичный Метод

Return the current branch
public getCurrentBranch ( )

getLocalModifications() публичный Метод

Return local modification
public getLocalModifications ( ) : array
Результат array of local modification

getModifiedFilesSince() публичный Метод

Status is one of the following : M (modified), A (added), R (removed)
public getModifiedFilesSince ( string $tag ) : array
$tag string
Результат array

getTags() публичный Метод

Return all tags of the project
public getTags ( ) : array
Результат array

publishChanges() публичный Метод

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

publishTag() публичный Метод

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

saveWorkingCopy() публичный Метод

Save the local modifications (commit)
public saveWorkingCopy ( string $commitMsg = '' ) : mixed
$commitMsg string
Результат mixed