PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
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: