Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
406 B · 17 lines
PHP
123456789101112131415161718<?php
final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery {
protected function newQueryFuture() { $drequest = $this->getRequest();
$repository = $drequest->getRepository(); $path = $drequest->getPath(); $commit = $drequest->getCommit();
return $repository->getLocalCommandFuture( 'cat-file blob -- %s', sprintf('%s:%s', $commit, $path)); }
}