summaryrefslogtreecommitdiffstats
path: root/git2rss
diff options
context:
space:
mode:
Diffstat (limited to 'git2rss')
-rwxr-xr-xgit2rss13
1 files changed, 13 insertions, 0 deletions
diff --git a/git2rss b/git2rss
new file mode 100755
index 0000000..a494ea1
--- /dev/null
+++ b/git2rss
@@ -0,0 +1,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);