Page MenuHomec4science

DiffusionGitCommitParentsQuery.php
No OneTemporary

File Metadata

Created
Sat, Nov 30, 17:06

DiffusionGitCommitParentsQuery.php

<?php
final class DiffusionGitCommitParentsQuery
extends DiffusionCommitParentsQuery {
protected function executeQuery() {
$drequest = $this->getRequest();
$repository = $drequest->getRepository();
list($stdout) = $repository->execxLocalCommand(
'log -n 1 --format=%s %s',
'%P',
$drequest->getStableCommitName());
$hashes = preg_split('/\s+/', trim($stdout));
return self::loadCommitsByIdentifiers($hashes, $drequest);
}
}

Event Timeline