function Perforce::getCommitLogs
Return value
mixed|null
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Perforce.php, line 593
Class
- Perforce
- @author Matt Whittom <Matt.Whittom@veteransunited.com>
Namespace
Composer\UtilCode
public function getCommitLogs(string $fromReference, string $toReference) : mixed {
$fromChangeList = $this->getChangeList($fromReference);
if ($fromChangeList === null) {
return null;
}
$toChangeList = $this->getChangeList($toReference);
if ($toChangeList === null) {
return null;
}
$index = strpos($fromReference, '@');
$main = substr($fromReference, 0, $index) . '/...';
$command = $this->generateP4Command('filelog ' . ProcessExecutor::escape($main . '@' . $fromChangeList . ',' . $toChangeList));
$this->executeCommand($command);
return $this->commandResult;
}