Definition at line 30 of file Git.php.
◆ getRepositoryState()
static pocketmine\utils\Git::getRepositoryState |
( |
string | $dir, |
|
|
bool & | $dirty ) |
|
static |
Returns the git hash of the currently checked out head of the given repository, or null on failure.
- Parameters
-
bool | $dirty | reference parameter, set to whether the repo has local changes |
Definition at line 41 of file Git.php.
References pocketmine\utils\Process\execute().
◆ getRepositoryStatePretty()
static pocketmine\utils\Git::getRepositoryStatePretty |
( |
string | $dir | ) |
|
|
static |
Infallible, returns a string representing git state, or a string of zeros on failure. If the repo is dirty, a "-dirty" suffix is added.
Definition at line 55 of file Git.php.
The documentation for this class was generated from the following file: