Свойство | Тип | Описание | |
---|---|---|---|
$hook | string | Hook that was triggered. | |
$root | string | Root folder of the package. |
Метод | Описание | |
---|---|---|
__construct ( string $hook, string $root ) | Instantiate a BaseAction object. | |
init ( ) | Initialize the action. | |
shutdown ( ) | Shut the action down. |
Метод | Описание | |
---|---|---|
getAgainst ( ) : string | Get the tree object to check against. | |
getStagedFiles ( $pattern ) : array | Get the file sthat have been staged for the current commit. | |
recursiveGlob ( string $pattern, integer $flags ) : mixed | Recursively iterate over folders and look for $pattern. |
Метод | Описание | |
---|---|---|
prependRoot ( string &$file, integer $index, string $root ) | Prepend the repository root path |
public __construct ( string $hook, string $root ) | ||
$hook | string | The name of the hook that was triggered. |
$root | string | Absolute path to the root folder of the package. |
protected getAgainst ( ) : string | ||
Результат | string | HEAD or hash representing empty/initial commit state |
protected getStagedFiles ( $pattern ) : array | ||
Результат | array |