src/package/Support/Git.php
public function getCommit($mode = null)
    {
        return $this->getFromGit(
            $this->makeGitHashRetrieverCommand($mode),
            Constants::VERSION_CACHE_KEY,
            $this->config->get('build.length', 6)
        );
    }
public function getCommit($mode = null)
    {
        return $this->getFromGit(
            $this->makeGitHashRetrieverCommand($mode),
            Constants::VERSION_CACHE_KEY,
            $this->config->get('build.length', 6)
        );
    }
public function getCommit ( $ mode = null ) { return $ this -> getFromGit ( $ this -> makeGitHashRetrieverCommand ( $ mode ) , Constants :: VERSION_CACHE_KEY , $ this -> config -> get ( 'build.length' , 6 ) ) ; }
Get the current git commit number, to be used as build number.

@param string|null $mode

@return string
Get the current git commit number to be used as build number .