Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialChangeset.php
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | if ($repository && $repository->getVersionControlSystem() == $svn) { | ||||
$path = substr($path, strlen($prefix)); | $path = substr($path, strlen($prefix)); | ||||
} | } | ||||
$path = '/'.ltrim($path, '/'); | $path = '/'.ltrim($path, '/'); | ||||
} | } | ||||
return $path; | return $path; | ||||
} | } | ||||
public function getWhitespaceMatters() { | |||||
$config = PhabricatorEnv::getEnvConfig('differential.whitespace-matters'); | |||||
foreach ($config as $regexp) { | |||||
if (preg_match($regexp, $this->getFilename())) { | |||||
return true; | |||||
} | |||||
} | |||||
return false; | |||||
} | |||||
public function attachDiff(DifferentialDiff $diff) { | public function attachDiff(DifferentialDiff $diff) { | ||||
$this->diff = $diff; | $this->diff = $diff; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getDiff() { | public function getDiff() { | ||||
return $this->assertAttached($this->diff); | return $this->assertAttached($this->diff); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |