function GitDownloader::viewDiff
Throws
\RuntimeException
1 call to GitDownloader::viewDiff()
- GitDownloader::cleanChanges in vendor/
composer/ composer/ src/ Composer/ Downloader/ GitDownloader.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ GitDownloader.php, line 585
Class
- GitDownloader
- @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\DownloaderCode
protected function viewDiff(string $path) : void {
$path = $this->normalizePath($path);
if (0 !== $this->process
->execute([
'git',
'diff',
'HEAD',
], $output, $path)) {
throw new \RuntimeException("Could not view diff\n\n:" . $output);
}
$this->io
->writeError($output);
}