summaryrefslogtreecommitdiffstats
path: root/examples/gitweb.php
blob: 820688d6ed5273266aa105272c4276a34dcfe576 (plain) (blame)
1 2 3 4 5 6 7 8 
<?php $uri = $_REQUEST["file"]; # $uri = "/systemtap/examples/index.html"; $gitfile0 = ereg_replace (".*/examples/", "", $uri); $gitfile1 = "testsuite/systemtap.examples/$gitfile0"; echo ("$uri $gitfile0 $gitfile1\n"); exec ("git --git-dir=/git/systemtap.git show HEAD:$gitfile1"); ?>