private function fetchCurrentCommit(GitRepository $git)
    {
        return \json_decode(
            \sprintf(
                '[%s]',
                // git show --format=$this->logFormat() --quiet
                $git->show()->format($this->logFormat())->execute('--quiet')
            ),
            true
        );
    }
private function fetchCurrentCommit(GitRepository $git)
    {
        return \json_decode(
            \sprintf(
                '[%s]',
                // git show --format=$this->logFormat() --quiet
                $git->show()->format($this->logFormat())->execute('--quiet')
            ),
            true
        );
    }
private function fetchCurrentCommit ( GitRepository $ git ) { return \ json_decode ( \ sprintf ( '[%s]' , // git show --format=$this->logFormat() --quiet $ git -> show ( ) -> format ( $ this -> logFormat ( ) ) -> execute ( '--quiet' ) ) , true ) ; }
Fetch the current commit.

@param GitRepository $git The git repository.

@return array
Fetch the current commit .