New pecl extension git2
| From: | chobie | Date: | Thu, 23 Feb 2012 06:48:24 +0000 |
| Subject: | New pecl extension git2 | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-9188@lists.php.net to get a copy of this message | ||
Hi all,
this is Shuhei.
I'd like to propose new pecl extension which name Git2.
This extension uses libgit2 library. Currently, git2 extension
provides basic repository manipulation:
commit log walking, create new commit, obtaining blob...
still some feature (remote and custom backend) are in experimental.
but others are okay.
for example: commit log walking
````
$repo = new Git2\Repository($path);
$walker = new Git2\Walker($repo);
/* specify HEAD oid */
$walker->push("6e20138dc38f9f626107f1cd3ef0f9838c43defe");
foreach ($walker as $oid => $commit) {
printf("oid: %s\n", $oid);
printf("message: %s\n", $commit->getMessage());
}
````
============================
License: MIT License
Repository: https://github.com/libgit2/php-git
(for now, php-git2 uses MIT license. If this is accepted, i'll
re-licensing to PHP license)
libgit2: https://github.com/libgit2/libgit2
libgit2 licence: GPLv2 linking exception
============================
libgit2 uses GPLv2
linking exception license. so it compatible with
Apache 2.0 license for linking the module.
https://github.com/libgit2/libgit2/issues/567#issuecomment-4038696
probably it has not license issue for listing to PECL. what do you
think about this extension?
Thank you for any feedback.
Sincerely,
Shuhei