PHP Класс Neos\Flow\Core\Migrations\Git

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

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

Метод Описание
commitAll ( string $path, string $message ) : array
getLog ( string $path, string $searchTerm = null ) : array Returns the git log for the specified $path, optionally filtered for $searchTerm
isGitAvailable ( ) : boolean Check whether the git command is available.
isWorkingCopy ( string $path ) : boolean Check whether the given $path is inside a git repository
isWorkingCopyDirty ( string $path ) : boolean Check whether the working copy has uncommitted changes.
isWorkingCopyRoot ( string $path ) : boolean Check whether the given $path points to the top-level of a git repository
logContains ( string $path, string $searchTerm ) : boolean Checks if the git repository for the given $path has a log entry matching $searchTerm
move ( string $source, string $target ) : integer
remove ( $fileOrDirectory ) : integer
show ( ) : string Get the result of git show for the current directory.

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

commitAll() публичный статический метод

public static commitAll ( string $path, string $message ) : array
$path string
$message string
Результат array in the format [, '']

getLog() публичный статический метод

Returns the git log for the specified $path, optionally filtered for $searchTerm
public static getLog ( string $path, string $searchTerm = null ) : array
$path string
$searchTerm string optional term to filter the log for
Результат array

isGitAvailable() публичный статический метод

Check whether the git command is available.
public static isGitAvailable ( ) : boolean
Результат boolean

isWorkingCopy() публичный статический метод

Check whether the given $path is inside a git repository
public static isWorkingCopy ( string $path ) : boolean
$path string
Результат boolean

isWorkingCopyDirty() публичный статический метод

Check whether the working copy has uncommitted changes.
public static isWorkingCopyDirty ( string $path ) : boolean
$path string
Результат boolean

isWorkingCopyRoot() публичный статический метод

Check whether the given $path points to the top-level of a git repository
public static isWorkingCopyRoot ( string $path ) : boolean
$path string
Результат boolean

logContains() публичный статический метод

Checks if the git repository for the given $path has a log entry matching $searchTerm
public static logContains ( string $path, string $searchTerm ) : boolean
$path string
$searchTerm string
Результат boolean

move() публичный статический метод

public static move ( string $source, string $target ) : integer
$source string
$target string
Результат integer

remove() публичный статический метод

public static remove ( $fileOrDirectory ) : integer
$fileOrDirectory
Результат integer

show() публичный статический метод

Get the result of git show for the current directory.
public static show ( ) : string
Результат string