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.
753 B · 43 lines
PHP
at commit 2f95330c
1234567891011121314151617181920212223242526272829303132333435363738394041424344<?php
final class DiffusionGitWireProtocolRef extends Phobject {
private $name; private $hash; private $isShallow;
public function setName($name) { $this->name = $name; return $this; }
public function getName() { return $this->name; }
public function setHash($hash) { $this->hash = $hash; return $this; }
public function getHash() { return $this->hash; }
public function setIsShallow($is_shallow) { $this->isShallow = $is_shallow; return $this; }
public function getIsShallow() { return $this->isShallow; }
public function newSortVector() { return id(new PhutilSortVector()) ->addInt((int)$this->getIsShallow()) ->addString((string)$this->getName()); }
}