PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\utils\Git Class Reference
+ Collaboration diagram for pocketmine\utils\Git:

Static Public Member Functions

static getRepositoryState (string $dir, bool &$dirty)
 
static getRepositoryStatePretty (string $dir)
 

Detailed Description

Definition at line 30 of file Git.php.

Member Function Documentation

◆ 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$dirtyreference parameter, set to whether the repo has local changes

Definition at line 41 of file Git.php.

References pocketmine\utils\Process\execute().

+ Here is the call graph for this function:

◆ 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: