Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/parser/DifferentialHunkParser.php
| Show First 20 Lines • Show All 785 Lines • ▼ Show 20 Lines | private function updateChangeTypesForNormalization() { | ||||
| // we're trying to accomplish by doing all this alignment stuff in the | // we're trying to accomplish by doing all this alignment stuff in the | ||||
| // first place. | // first place. | ||||
| // | // | ||||
| // However, in this case the correctly-aligned lines will be incorrectly | // However, in this case the correctly-aligned lines will be incorrectly | ||||
| // marked as unchanged because the diff alorithm was fed normalized copies | // marked as unchanged because the diff alorithm was fed normalized copies | ||||
| // of the lines, and these copies truly weren't any different. | // of the lines, and these copies truly weren't any different. | ||||
| // | // | ||||
| // When lines are aligned and marked identical, but they're not actually | // When lines are aligned and marked identical, but they're not actually | ||||
| // identcal, we now mark them as changed. The rest of the processing will | // identical, we now mark them as changed. The rest of the processing will | ||||
| // figure out how to render them appropritely. | // figure out how to render them appropritely. | ||||
| $new = $this->getNewLines(); | $new = $this->getNewLines(); | ||||
| $old = $this->getOldLines(); | $old = $this->getOldLines(); | ||||
| foreach ($old as $key => $o) { | foreach ($old as $key => $o) { | ||||
| $n = $new[$key]; | $n = $new[$key]; | ||||
| if (!$o || !$n) { | if (!$o || !$n) { | ||||
| Show All 17 Lines | |||||