Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality I found useful #10

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Added functionality I found useful #10

wants to merge 6 commits into from

Conversation

Truemedia
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant