Git
Methods
getRepositoryState()
php
public static function getRepositoryState(string $dir, bool &$dirty) : ?stringReturns the git hash of the currently checked out head of the given repository, or null on failure.
getRepositoryStatePretty()
php
public static function getRepositoryStatePretty(string $dir) : stringInfallible, returns a string representing git state, or a string of zeros on failure. If the repo is dirty, a "-dirty" suffix is added.
