Differential D21511 Diff 51201 src/applications/diffusion/query/filecontent/DiffusionGitFileContentQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/filecontent/DiffusionGitFileContentQuery.php
| <?php | <?php | ||||
| final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery { | final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery { | ||||
| protected function newQueryFuture() { | protected function newQueryFuture() { | ||||
| $drequest = $this->getRequest(); | $drequest = $this->getRequest(); | ||||
| $repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
| $path = $drequest->getPath(); | $path = $drequest->getPath(); | ||||
| $commit = $drequest->getCommit(); | $commit = $drequest->getCommit(); | ||||
| return $repository->getLocalCommandFuture( | return $repository->getLocalCommandFuture( | ||||
| 'cat-file blob -- %s:%s', | 'cat-file blob -- %s', | ||||
| $commit, | sprintf('%s:%s', $commit, $path)); | ||||
| $path); | |||||
| } | } | ||||
| } | } | ||||