public function renderTextSummary() { $type = $this->getType(); $file = $this->getFileType(); $char = ArcanistDiffChangeType::getSummaryCharacterForChangeType($type); $attr = ArcanistDiffChangeType::getShortNameForFileType($file); if ($attr) { $attr = '(' . $attr . ')'; } $summary = array(); $summary[] = sprintf("%s %5.5s %s", $char, $attr, $this->getCurrentPath()); if (ArcanistDiffChangeType::isOldLocationChangeType($type)) { foreach ($this->getAwayPaths() as $path) { $summary[] = ' to: ' . $path; } } if (ArcanistDiffChangeType::isNewLocationChangeType($type)) { $summary[] = ' from: ' . $this->getOldPath(); } return implode("\n", $summary); }