private static function getRevisionFrom($path)
    {
        $matches = [];
        preg_match(self::$revisionRegex, $path, $matches);

        $match = array_shift($matches);
        return substr($match, 0, 7);
    }
private static function getRevisionFrom($path)
    {
        $matches = [];
        preg_match(self::$revisionRegex, $path, $matches);

        $match = array_shift($matches);
        return substr($match, 0, 7);
    }
private static function getRevisionFrom ( $ path ) { $ matches = [ ] ; preg_match ( self :: $ revisionRegex , $ path , $ matches ) ; $ match = array_shift ( $ matches ) ; return substr ( $ match , 0 , 7 ) ; }
Returns the short representation of a revision number bc6bbf8e2006d15cbe883d8045724cdb1166e759 is turned into
bc6bbf8

@param $path
@return bool|string
Returns the short representation of a revision number bc6bbf8e2006d15cbe883d8045724cdb1166e759 is turned into bc6bbf8