Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GitDownloader.php

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\Downloader

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal