PartKeepr\CoreBundle\Services\VersionService::extractShortGITCommit PHP Method

extractShortGITCommit() public method

Extracts the current short commit from GIT.
public extractShortGITCommit ( ) : string
return string
    public function extractShortGITCommit()
    {
        $result = shell_exec("git rev-parse --short HEAD");
        return trim($result);
    }