Add Git for Windows
This commit is contained in:
parent
077e4dc920
commit
bcfd885139
1 changed files with 14 additions and 0 deletions
14
modules/Git.php
Normal file
14
modules/Git.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Git extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Linus Torvalds', 'Git for Windows', 'https://gitforwindows.org/');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch_json('https://api.github.com/repos/git-for-windows/git/releases/latest'))
|
||||||
|
return $this->parse_json('tag_name', '/v(.+)\.windows\.\d+/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue