public function commitPath(Commit $commit, $max = 1000)
    {
        $this->clearAll();
        $this->addCommandName(static::GIT_REVLIST);
        $this->addCommandArgument(sprintf('--max-count=%s', $max));
        $this->addCommandSubject($commit->getSha());

        return $this->getCommand();
    }
public function commitPath(Commit $commit, $max = 1000)
    {
        $this->clearAll();
        $this->addCommandName(static::GIT_REVLIST);
        $this->addCommandArgument(sprintf('--max-count=%s', $max));
        $this->addCommandSubject($commit->getSha());

        return $this->getCommand();
    }
public function commitPath ( Commit $ commit , $ max = 1000 ) { $ this -> clearAll ( ) ; $ this -> addCommandName ( static :: GIT_REVLIST ) ; $ this -> addCommandArgument ( sprintf ( '--max-count=%s' , $ max ) ) ; $ this -> addCommandSubject ( $ commit -> getSha ( ) ) ; return $ this -> getCommand ( ) ; }
get the commits path to the passed commit. Useful to count commits in a repo

@param \GitElephant\Objects\Commit $commit commit instance
@param int                         $max    max count

@throws \RuntimeException
@return string
get the commits path to the passed commit . Useful to count commits in a repo