Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
PHP
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647<?php
abstract class DiffusionRawDiffQuery extends DiffusionFileFutureQuery {
private $linesOfContext = 65535; private $anchorCommit; private $againstCommit;
final public static function newFromDiffusionRequest( DiffusionRequest $request) { return parent::newQueryObject(self::class, $request); }
final public function setLinesOfContext($lines_of_context) { $this->linesOfContext = $lines_of_context; return $this; }
final public function getLinesOfContext() { return $this->linesOfContext; }
final public function setAgainstCommit($value) { $this->againstCommit = $value; return $this; }
final public function getAgainstCommit() { return $this->againstCommit; }
public function setAnchorCommit($anchor_commit) { $this->anchorCommit = $anchor_commit; return $this; }
public function getAnchorCommit() { if ($this->anchorCommit) { return $this->anchorCommit; }
return $this->getRequest()->getStableCommit(); }
}