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