public function getBranchTree($branch)
    {
        $hash = $this->getClient()->run($this, "log --pretty=\"%T\" --max-count=1 $branch");
        $hash = trim($hash, "\r\n ");

        return $hash ?: false;
    }
public function getBranchTree($branch)
    {
        $hash = $this->getClient()->run($this, "log --pretty=\"%T\" --max-count=1 $branch");
        $hash = trim($hash, "\r\n ");

        return $hash ?: false;
    }
public function getBranchTree ( $ branch ) { $ hash = $ this -> getClient ( ) -> run ( $ this , "log --pretty=\"%T\" --max-count=1 $branch" ) ; $ hash = trim ( $ hash , "\r\n " ) ; return $ hash ? : false ; }
Extract the tree hash for a given branch or tree reference.

@param  string $branch

@return string
Extract the tree hash for a given branch or tree reference .