PartKeepr\CoreBundle\Services\VersionService::extractShortGITCommit PHP 메소드

extractShortGITCommit() 공개 메소드

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