PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
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: