PHP Class Neos\Flow\Core\Migrations\Git

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

commitAll() public static méthode

public static commitAll ( string $path, string $message ) : array
$path string
$message string
Résultat array in the format [, '']

getLog() public static méthode

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
Résultat array

isGitAvailable() public static méthode

Check whether the git command is available.
public static isGitAvailable ( ) : boolean
Résultat boolean

isWorkingCopy() public static méthode

Check whether the given $path is inside a git repository
public static isWorkingCopy ( string $path ) : boolean
$path string
Résultat boolean

isWorkingCopyDirty() public static méthode

Check whether the working copy has uncommitted changes.
public static isWorkingCopyDirty ( string $path ) : boolean
$path string
Résultat boolean

isWorkingCopyRoot() public static méthode

Check whether the given $path points to the top-level of a git repository
public static isWorkingCopyRoot ( string $path ) : boolean
$path string
Résultat boolean

logContains() public static méthode

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
Résultat boolean

move() public static méthode

public static move ( string $source, string $target ) : integer
$source string
$target string
Résultat integer

remove() public static méthode

public static remove ( $fileOrDirectory ) : integer
$fileOrDirectory
Résultat integer

show() public static méthode

Get the result of git show for the current directory.
public static show ( ) : string
Résultat string