summaryrefslogtreecommitdiffstats
path: root/git2rss
blob: a494ea1f5a794000b5596c6b8dffc18de90442e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/git2rss.json')) {
	$json = file_get_contents(__DIR__ . '/git2rss.json');
	$histo = json_decode($json, true);
} else {
	$histo = array();
}

$log = exec("git log --pretty=format:%H,%ai,%an,%s -1");
$log = explode(',', $log, 4);
var_dump($log);