File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1+ PHP libgit2 bindings
2+ Shuhei Tanuma
Original file line number Diff line number Diff line change 1+ this extension is experimental,
2+ its functions may change their names
3+ or move to extension all together
4+ so do not rely to much on them
5+ you have been warned!
Original file line number Diff line number Diff line change 33php-git2 is a PHP bindings to the libgit2 linkable C Git library.
44this extension are re-writing php-git as that code too dirty.
55
6+ # Important Notice
7+
8+ php-git changed it's API drastically. this changes doesn't care about compatibility between old one.
9+ please check tests cases.
10+
611# Installing And Running
712
813````
9- git clone https://github.com/chobie /php-git2 .git
10- cd php-git2
14+ git clone https://github.com/libgit2 /php-git .git
15+ cd php-git
1116phpize
1217./configure
1318make
@@ -83,16 +88,14 @@ $tree = $bld->write($repo);
8388
8489$parent = "";
8590$parents = array();
86- for ($i = 0; $i< 10;$i++){
87- $parent = Git2\Commit::create($repo, array(
88- "author" => $author,
89- "committer" => $author,
90- "message" => "Hello World: {$i}",
91- "tree" => $tree,
92- "parents" => $parents,
93- ));
94- $parents = array($parent);
95- }
91+ $parent = Git2\Commit::create($repo, array(
92+ "author" => $author,
93+ "committer" => $author,
94+ "message" => "Hello World",
95+ "tree" => $tree,
96+ "parents" => $parents,
97+ ));
98+ $parents = array($parent);
9699````
97100
98101## Revision Walking
You can’t perform that action at this time.
0 commit comments