Differential D10585 Diff 25583 src/applications/diffusion/controller/DiffusionBrowseFileController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionBrowseFileController.php
Show First 20 Lines • Show All 1,010 Lines • ▼ Show 20 Lines | if (!$line) { | ||||
return null; | return null; | ||||
} | } | ||||
$raw_diff = $this->callConduitWithDiffusionRequest( | $raw_diff = $this->callConduitWithDiffusionRequest( | ||||
'diffusion.rawdiffquery', | 'diffusion.rawdiffquery', | ||||
array( | array( | ||||
'commit' => $drequest->getCommit(), | 'commit' => $drequest->getCommit(), | ||||
'path' => $drequest->getPath(), | 'path' => $drequest->getPath(), | ||||
'againstCommit' => $target_commit)); | 'againstCommit' => $target_commit, | ||||
)); | |||||
$old_line = 0; | $old_line = 0; | ||||
$new_line = 0; | $new_line = 0; | ||||
foreach (explode("\n", $raw_diff) as $text) { | foreach (explode("\n", $raw_diff) as $text) { | ||||
if ($text[0] == '-' || $text[0] == ' ') { | if ($text[0] == '-' || $text[0] == ' ') { | ||||
$old_line++; | $old_line++; | ||||
} | } | ||||
if ($text[0] == '+' || $text[0] == ' ') { | if ($text[0] == '+' || $text[0] == ' ') { | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |