public function getTagCommit(Tag $tag)
    {
        $this->clearAll();
        $this->addCommandName(static::GIT_REVLIST);
        // only the last commit
        $this->addCommandArgument('-n1');
        $this->addCommandSubject($tag->getFullRef());

        return $this->getCommand();
    }
public function getTagCommit(Tag $tag)
    {
        $this->clearAll();
        $this->addCommandName(static::GIT_REVLIST);
        // only the last commit
        $this->addCommandArgument('-n1');
        $this->addCommandSubject($tag->getFullRef());

        return $this->getCommand();
    }
public function getTagCommit ( Tag $ tag ) { $ this -> clearAll ( ) ; $ this -> addCommandName ( static :: GIT_REVLIST ) ; // only the last commit $ this -> addCommandArgument ( '-n1' ) ; $ this -> addCommandSubject ( $ tag -> getFullRef ( ) ) ; return $ this -> getCommand ( ) ; }
get tag commit command via rev-list

@param \GitElephant\Objects\Tag $tag a tag instance

@throws \RuntimeException
@return string
get tag commit command via rev - list