public function add($what = '.')
    {
        $this->clearAll();
        $this->addCommandName(self::GIT_ADD);
        $this->addCommandArgument('--all');
        $this->addCommandSubject($what);

        return $this->getCommand();
    }
public function add($what = '.')
    {
        $this->clearAll();
        $this->addCommandName(self::GIT_ADD);
        $this->addCommandArgument('--all');
        $this->addCommandSubject($what);

        return $this->getCommand();
    }
public function add ( $ what = '.' ) { $ this -> clearAll ( ) ; $ this -> addCommandName ( self :: GIT_ADD ) ; $ this -> addCommandArgument ( '--all' ) ; $ this -> addCommandSubject ( $ what ) ; return $ this -> getCommand ( ) ; }
Add a node to the stage

@param string $what what should be added to the repository

@throws \RuntimeException
@return string
Add a node to the stage