views:

1429

answers:

4

Hello!

I'm researching the idea of building a super-small (preferably PHP) web app, which will serve (among other things) as a minimal front-end to a git repository.

Any library/article for reading a git repository (".git" folder) without having to execute the "git" process? I'm looking for an API to manage a git repository. I'm only interested in basic functions, such as reading last commits (name of commiter, commit note, date), displaying and traversing branches...

Thanks, ANaimi

+4  A: 

You may also want to check out the Cgit project since they've done something similar (except they build their own git library -- also to avoid running git directly).

There's JGit, a pure Java implementation, that may be useful to you.

Pat Notz
A: 

I think that best start in such case could be Interfaces Frontends And Tools page on Git Wiki.
You can find there link to eWiki (github) which supposedly uses native (in PHP) access to Git.

Jakub Narębski
Yes actually that's what i'm doing right now. Looking at eWiki's code.
ANaimi
A: 

Try also glip, a pure php implementation of git, which was extracted from eWiki.

Cesare D'Amico