git-graph

This software builds a graphical history of the commits in a GIT repository and makes it available in your browser. It is designed to work in tandem with gitweb.

A demo is available on our GIT repository. Just click on one of the projects, and then click on the "git-graph" link at the top of the page. Click here for a screenshot.

 

Download and installation

You can download the first version here, released under GPL license.

The configuration is extremely simple, all you have to do is:

  • copy git-graph.php in a directory made public by your web server, for instance "/home/git/git-graph" available on the web as "http://your-domain.com/git-graph".
  • configure three lines inside of the git-graph.php file, e.g.:
    $GLOBALS["repo"]["base"] = "/home/git/repositories/";
    $GLOBALS["gitweb"]["url"] = 
    	"http://d3s.disi.unitn.it/gitweb/";
    $GLOBALS["git"]["path"] = "/usr/bin/git";
    
    and
  • configure gitweb, i.e. edit "/etc/gitweb.conf" and add the following lines:
    $feature{'forks'}{'default'} = [1];
    $feature{'actions'}{'default'} = [('git-graph',
        '/git-graph/git-graph.php?r=%n', 'summary')];