Cake\Upgrade\Shell\Task\StageTask::_gitMove PHP Метод

_gitMove() защищенный Метод

Moves files or folders using GIT.
protected _gitMove ( string $gitCd, string $from, string $to ) : void
$gitCd string The `cd` command that changes into the files/folder parent directory
$from string The source path
$to string The target path
Результат void
    protected function _gitMove($gitCd, $from, $to)
    {
        if (!file_exists(dirname($to))) {
            $this->_makeDir(dirname($to));
        }
        exec($gitCd . 'git mv -f ' . escapeshellarg($from) . ' ' . escapeshellarg($from . '__'));
        exec($gitCd . 'git mv -f ' . escapeshellarg($from . '__') . ' ' . escapeshellarg($to));
    }