public function renameBranch($from, $to) { $commit = new Proxy\CommitProxy($this, $this->transport->resolveTreeish($from)); $this->setBranch($to, $commit); $this->removeBranch($from); }