public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
public function setRepositoryAPI($repository_api)
ArcanistRepositoryAPI | $repository_api |
wild |
public function setDetectBinaryFiles($detect)
$detect |
wild |
public function setTryEncoding($encoding)
$encoding |
wild |
public function forcePath($path)
$path |
wild |
public function setChanges($changes)
array | $changes |
wild |
public function parseSubversionDiff($api, $paths)
ArcanistSubversionAPI | $api | |
$paths |
wild |
public function parseDiff($diff)
$diff |
wild |
protected function tryMatchHeader($patterns, $line, &$match)
$patterns | ||
$line | ||
&$match |
wild |
protected function parseCommitMessage($change)
ArcanistDiffChange | $change |
wild |
protected function parsePropertyHunk($change)
Parse an SVN property change hunk. These hunks are ambiguous so just sort of try to get it mostly right. It's entirely possible to foil this parser (or any other parser) with a carefully constructed property change.
ArcanistDiffChange | $change |
wild |
private function parseSVNPropertyChange($op, $prop)
$op | ||
$prop |
wild |
protected function setIsGit($git)
$git |
wild |
protected function getIsGit()
wild |
public function setIsMercurial($is_mercurial)
$is_mercurial |
wild |
public function getIsMercurial()
wild |
protected function parseIndexHunk($change)
ArcanistDiffChange | $change |
wild |
private function parseGitBinaryPatch()
wild |
protected function parseHunkTarget()
wild |
protected function markBinary($change)
ArcanistDiffChange | $change |
wild |
protected function parseChangeset($change)
ArcanistDiffChange | $change |
wild |
protected function buildChange($path)
$path |
wild |
protected function didStartParse($text)
$text |
wild |
protected function getLine()
wild |
protected function getLineTrimmed()
wild |
protected function nextLine()
wild |
protected function nextLineTrimmed()
wild |
protected function nextNonemptyLine()
wild |
protected function nextLineThatLooksLikeDiffStart()
wild |
protected function saveLine()
wild |
protected function restoreLine()
wild |
protected function isFirstNonEmptyLine()
wild |
protected function didFinishParse()
wild |
public function setWriteDiffOnFailure($write)
$write |
wild |
protected function didFailParse($message)
$message |
wild |
private static function unescapeFilename($name)
Unescape escaped filenames, e.g. from "git diff".
$name |
wild |
private function loadSyntheticData()
wild |
public static function extractGitCommonFilename($paths)
Extracts the common filename from two strings with differing path prefixes as found after diff --git. These strings may be quoted; if so, the filename is returned unescaped. The prefixes default to "a/" and "b/", but may be any string -- or may be entierly absent. This function may return "null" if the hunk represents a file move or copy, and with pathological renames may return an incorrect value. Such cases are expected to be recovered by later rename detection codepaths.
string | $paths | Text from a diff line after "diff --git ". |
string | Filename being altered, or null for a rename. |
private function stripGitFormatPatch($diff)
Strip the header and footer off a git-format-patch diff.
Returns a parseable normal diff and a textual commit message.
$diff |
wild |