public function deleteBranch(string $name, bool $force = false)
    {
        $this->caller->execute(BranchCommand::getInstance($this)->delete($name, $force));

        return $this;
    }
public function deleteBranch(string $name, bool $force = false)
    {
        $this->caller->execute(BranchCommand::getInstance($this)->delete($name, $force));

        return $this;
    }
public function deleteBranch ( string $ name , bool $ force = false ) { $ this -> caller -> execute ( BranchCommand :: getInstance ( $ this ) -> delete ( $ name , $ force ) ) ; return $ this ; }
Delete a branch by its name
This function change the state of the repository on the filesystem

@param string $name  The branch to delete
@param bool   $force Force the delete

@throws \RuntimeException
@throws \Symfony\Component\Process\Exception\LogicException
@throws InvalidArgumentException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return Repository
Delete a branch by its name This function change the state of the repository on the filesystem