libgit2/php-git

Documentation and Examples

Opened this issue · 7 comments

tried to find out what (int type) is,
api snippet -> string $odb->hash(string contents, int type)
found definition here http://libgit2.github.com/libgit2/#HEAD/type/git_otype

ah, sorry. I wrote the document once But I've made drastic change so gh-page document is completely out-dated.
now, README.md is only one.

php-git examples:
https://github.com/chobie/kokuban/blob/master/Kokuban/GistProvider.php

https://github.com/chobie/Git2RepositoryBrowserBundle/blob/master/src/Chobie/Bundle/Git2RepositoryBrowserBundle/Controller/DefaultController.php

I want to add documentation. But probably it'll take long time as php-git has many classes and methods.
please feel free to ask me If you had some questions when using php-git.

8 months have passed, and now it seems that the few examples around are not even compatible anymore (Git vs Git2 classes). I've tried to list the contents of a repo from what is in the README but got nowhere. Exposing a list of classes an methods would already be helpful.

@xSmurf https://gist.github.com/4243306 , doest it help? I generate it with generating PHP model for PDT and collaborating with PHP doc:howto:getting started. In my computer where php-git loaded in php.ini file, I run:

~/opt/php53apache/bin/php ~/utility/generate/generate.php ~/src/subversion/phpdoc/en/

how to make a pull for this bind?

i mean if i want to pull the git using php-git , how to get this done?

@sidealice currently not supported yet. use git command instead.

thanks understand.