public function delete($name, $force = false)
    {
        $arg = ($force === true) ? '-D' : '-d';
        $this->clearAll();
        $this->addCommandName(self::BRANCH_COMMAND);
        $this->addCommandArgument($arg);
        $this->addCommandSubject($name);

        return $this->getCommand();
    }
public function delete($name, $force = false)
    {
        $arg = ($force === true) ? '-D' : '-d';
        $this->clearAll();
        $this->addCommandName(self::BRANCH_COMMAND);
        $this->addCommandArgument($arg);
        $this->addCommandSubject($name);

        return $this->getCommand();
    }
public function delete ( $ name , $ force = false ) { $ arg = ( $ force === true ) ? '-D' : '-d' ; $ this -> clearAll ( ) ; $ this -> addCommandName ( self :: BRANCH_COMMAND ) ; $ this -> addCommandArgument ( $ arg ) ; $ this -> addCommandSubject ( $ name ) ; return $ this -> getCommand ( ) ; }
Delete a branch by its name

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

@throws \RuntimeException
@return string the command
Delete a branch by its name