Differential D21511 Diff 51201 src/applications/diffusion/conduit/DiffusionLastModifiedQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionLastModifiedQueryConduitAPIMethod.php
| Show All 27 Lines | protected function getGitResult(ConduitAPIRequest $request) { | ||||
| $paths = $request->getValue('paths'); | $paths = $request->getValue('paths'); | ||||
| $results = $this->loadCommitsFromCache($paths); | $results = $this->loadCommitsFromCache($paths); | ||||
| foreach ($paths as $path => $commit) { | foreach ($paths as $path => $commit) { | ||||
| if (array_key_exists($path, $results)) { | if (array_key_exists($path, $results)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| list($hash) = $repository->execxLocalCommand( | list($hash) = $repository->execxLocalCommand( | ||||
| 'log -n1 --format=%%H %s -- %s', | 'log -n1 %s %s -- %s', | ||||
| '--format=%H', | |||||
| gitsprintf('%s', $commit), | gitsprintf('%s', $commit), | ||||
| $path); | $path); | ||||
| $results[$path] = trim($hash); | $results[$path] = trim($hash); | ||||
| } | } | ||||
| return $results; | return $results; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines | |||||