Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added php-git2 README. please make sure this chanages

  • Loading branch information...
commit 45e29aae751d4942df618af4ffa04804919cc245 1 parent fbc746f
@chobie chobie authored
Showing with 22 additions and 12 deletions.
  1. +2 −0  CREDITS
  2. +5 −0 EXPERIMENTAL
  3. +15 −12 README.md
View
2  CREDITS
@@ -0,0 +1,2 @@
+PHP libgit2 bindings
+Shuhei Tanuma
View
5 EXPERIMENTAL
@@ -0,0 +1,5 @@
+this extension is experimental,
+its functions may change their names
+or move to extension all together
+so do not rely to much on them
+you have been warned!
View
27 README.md
@@ -3,11 +3,16 @@
php-git2 is a PHP bindings to the libgit2 linkable C Git library.
this extension are re-writing php-git as that code too dirty.
+# Important Notice
+
+php-git changed it's API drastically. this changes doesn't care about compatibility between old one.
+please check tests cases.
+
# Installing And Running
````
-git clone https://github.com/chobie/php-git2.git
-cd php-git2
+git clone https://github.com/libgit2/php-git.git
+cd php-git
phpize
./configure
make
@@ -83,16 +88,14 @@ $tree = $bld->write($repo);
$parent = "";
$parents = array();
-for ($i = 0; $i< 10;$i++){
- $parent = Git2\Commit::create($repo, array(
- "author" => $author,
- "committer" => $author,
- "message" => "Hello World: {$i}",
- "tree" => $tree,
- "parents" => $parents,
- ));
- $parents = array($parent);
-}
+$parent = Git2\Commit::create($repo, array(
+ "author" => $author,
+ "committer" => $author,
+ "message" => "Hello World",
+ "tree" => $tree,
+ "parents" => $parents,
+));
+$parents = array($parent);
````
## Revision Walking
Please sign in to comment.
Something went wrong with that request. Please try again.