public function listAll($ref = null)
    {
        if (is_null($ref)) {
            $ref = 'HEAD';
        }
        $this->clearAll();

        $this->addCommandName(self::LS_TREE_COMMAND);
        $this->addCommandSubject($ref);

        return $this->getCommand();
    }
public function listAll($ref = null)
    {
        if (is_null($ref)) {
            $ref = 'HEAD';
        }
        $this->clearAll();

        $this->addCommandName(self::LS_TREE_COMMAND);
        $this->addCommandSubject($ref);

        return $this->getCommand();
    }
public function listAll ( $ ref = null ) { if ( is_null ( $ ref ) ) { $ ref = 'HEAD' ; } $ this -> clearAll ( ) ; $ this -> addCommandName ( self :: LS_TREE_COMMAND ) ; $ this -> addCommandSubject ( $ ref ) ; return $ this -> getCommand ( ) ; }
build ls-tree command that list all

@param null|string $ref the reference to build the tree from

@throws \RuntimeException
@return string
build ls - tree command that list all