PHP 클래스 Neos\Flow\Core\Migrations\Git

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
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