@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
1<?php
2
3final class DiffusionGitFileContentQuery extends DiffusionFileContentQuery {
4
5 protected function newQueryFuture() {
6 $drequest = $this->getRequest();
7
8 $repository = $drequest->getRepository();
9 $path = $drequest->getPath();
10 $commit = $drequest->getCommit();
11
12 return $repository->getLocalCommandFuture(
13 'cat-file blob -- %s',
14 sprintf('%s:%s', $commit, $path));
15 }
16
17}