Differential D21510 Diff 51199 src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
Show All 39 Lines | protected function getGitResult(ConduitAPIRequest $request) { | ||||
// Recent versions of Git don't work if you pass the empty string, and | // Recent versions of Git don't work if you pass the empty string, and | ||||
// require "." to list everything. | // require "." to list everything. | ||||
if (!strlen($path)) { | if (!strlen($path)) { | ||||
$path = '.'; | $path = '.'; | ||||
} | } | ||||
$future = $repository->getLocalCommandFuture( | $future = $repository->getLocalCommandFuture( | ||||
'ls-tree --name-only -r -z %s -- %s', | 'ls-tree --name-only -r -z %s -- %s', | ||||
$commit, | gitsprintf('%s', $commit), | ||||
$path); | $path); | ||||
$lines = id(new LinesOfALargeExecFuture($future))->setDelimiter("\0"); | $lines = id(new LinesOfALargeExecFuture($future))->setDelimiter("\0"); | ||||
return $this->filterResults($lines, $request); | return $this->filterResults($lines, $request); | ||||
} | } | ||||
protected function getMercurialResult(ConduitAPIRequest $request) { | protected function getMercurialResult(ConduitAPIRequest $request) { | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |