Patch coverage
Generate coverage reports for git patches
Loading...
Searching...
No Matches
MediaWiki\Tool\PatchCoverage\Git Class Reference

Wrapper around git. More...

Public Member Functions

 __construct ( $path)
 
 getChangedFiles ( $ref)
 
 checkout ( $ref)
 git checkout
 
 getSha1 ( $ref)
 Get a SHA1 for any ref.
 
 findNonMergeCommit ( $ref)
 If $ref is a merge commit, get its parent, otherwise return $ref.
 

Detailed Description

Wrapper around git.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Tool\PatchCoverage\Git::__construct ( $path)
Parameters
string$path

Member Function Documentation

◆ checkout()

MediaWiki\Tool\PatchCoverage\Git::checkout ( $ref)

git checkout

Parameters
string$ref

◆ findNonMergeCommit()

MediaWiki\Tool\PatchCoverage\Git::findNonMergeCommit ( $ref)

If $ref is a merge commit, get its parent, otherwise return $ref.

Parameters
string$ref
Returns
string

◆ getChangedFiles()

MediaWiki\Tool\PatchCoverage\Git::getChangedFiles ( $ref)
Parameters
string$ref
Returns
GitChanged

◆ getSha1()

MediaWiki\Tool\PatchCoverage\Git::getSha1 ( $ref)

Get a SHA1 for any ref.

Parameters
string$ref
Returns
string

The documentation for this class was generated from the following file: