public function content(NodeObject $object, $treeish)
    {
        $this->clearAll();
        if ($treeish instanceof TreeishInterface) {
            $sha = $treeish->getSha();
        } else {
            $sha = $treeish;
        }
        $this->addCommandName(static::GIT_CAT_FILE);
        // pretty format
        $this->addCommandArgument('-p');
        $this->addCommandSubject($sha . ':' . $object->getFullPath());

        return $this->getCommand();
    }
public function content(NodeObject $object, $treeish)
    {
        $this->clearAll();
        if ($treeish instanceof TreeishInterface) {
            $sha = $treeish->getSha();
        } else {
            $sha = $treeish;
        }
        $this->addCommandName(static::GIT_CAT_FILE);
        // pretty format
        $this->addCommandArgument('-p');
        $this->addCommandSubject($sha . ':' . $object->getFullPath());

        return $this->getCommand();
    }
public function content ( NodeObject $ object , $ treeish ) { $ this -> clearAll ( ) ; if ( $ treeish instanceof TreeishInterface ) { $ sha = $ treeish -> getSha ( ) ; } else { $ sha = $ treeish ; } $ this -> addCommandName ( static :: GIT_CAT_FILE ) ; // pretty format $ this -> addCommandArgument ( '-p' ) ; $ this -> addCommandSubject ( $ sha . ':' . $ object -> getFullPath ( ) ) ; return $ this -> getCommand ( ) ; }
command to show content of a Object at a given Treeish point

@param \GitElephant\Objects\NodeObject              $object  a Object instance
@param \GitElephant\Objects\TreeishInterface|string $treeish an object with TreeishInterface interface

@throws \RuntimeException
@return string
command to show content of a Object at a given Treeish point