3 $gitcmd = "git log -n $pagesize --pretty='%at\t%an\t%s'";
5 if ( $log = popen($gitcmd, 'r') ) {
7 while ( $line = fgets($log) ) {
8 list ($atime, $author, $message) = explode("\t", $line, 3);
9 list ($author) = explode(' ', $author); # first name only
10 printf('<li>%s <small class="date">%s • %s</small></li>'."\n",
11 $message, $author, strftime('%F %H:%M', $atime)