Differential D21511 Diff 51201 src/applications/diffusion/query/lowlevel/DiffusionLowLevelFilesizeQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/lowlevel/DiffusionLowLevelFilesizeQuery.php
| Show All 27 Lines | final class DiffusionLowLevelFilesizeQuery | ||||
| } | } | ||||
| private function loadGitFilesizes() { | private function loadGitFilesizes() { | ||||
| $repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
| $identifier = $this->identifier; | $identifier = $this->identifier; | ||||
| $paths_future = $repository->getLocalCommandFuture( | $paths_future = $repository->getLocalCommandFuture( | ||||
| 'diff-tree -z -r --no-commit-id %s --', | 'diff-tree -z -r --no-commit-id %s --', | ||||
| $identifier); | gitsprintf('%s', $identifier)); | ||||
| // With "-z" we get "<fields>\0<filename>\0" for each line. Process the | // With "-z" we get "<fields>\0<filename>\0" for each line. Process the | ||||
| // delimited text as "<fields>, <filename>" pairs. | // delimited text as "<fields>, <filename>" pairs. | ||||
| $path_lines = id(new LinesOfALargeExecFuture($paths_future)) | $path_lines = id(new LinesOfALargeExecFuture($paths_future)) | ||||
| ->setDelimiter("\0"); | ->setDelimiter("\0"); | ||||
| $paths = array(); | $paths = array(); | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||