Banago\PHPloy\Git::diff PHP Method

diff() public method

Diff versions.
public diff ( string $remoteRevision, string $localRevision, string $repoPath = null ) : array
$remoteRevision string
$localRevision string
$repoPath string
return array
    public function diff($remoteRevision, $localRevision, $repoPath = null)
    {
        if (empty($remoteRevision)) {
            $command = 'ls-files';
        } elseif ($localRevision === 'HEAD') {
            $command = 'diff --name-status ' . $remoteRevision . ' ' . $localRevision;
        } else {
            // What's the point of this ELSE clause?
            $command = 'diff --name-status ' . $remoteRevision . ' ' . $localRevision;
        }
        return $this->command($command, $repoPath);
    }