Gitamin\Services\Git\Repository::getHead PHP Méthode

getHead() public méthode

Get the current branch, returning a default value when HEAD is detached.
public getHead ( $default = null )
    public function getHead($default = null)
    {
        $client = $this->getClient();
        return parent::getHead($client->getDefaultBranch());
    }