glip
glip copied to clipboard
Added functionality I found useful
Hi Iv'e been modifying glip into a plugin I am making for MantisBT so that MantisBT can be a full online git manager and created a function I found useful that is very simple and short on code.
It reads the description of a repo and can be used in any php file with just this code:
require_once(dirname(FILE).'/git/glip/lib/glip.php'); $repo = new Git(dirname(FILE).'/git/repoName/.git'); $desc = $repo->getDescription($repo->dir); // returns description of the repo
The first commit you can ignore (just the way I setup my developement environment) but I know that function will be very useful to a lot of people and I would be appreciative if some of my code could be contributed back to this project.