summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-27 14:03:39 +0200
committerRemi Collet <fedora@famillecollet.com>2017-03-27 14:03:39 +0200
commitec1833347808facb0cbdfa17260b4dd9dc0e39c6 (patch)
tree40161ff3ee3a4ab686628d38c2b7a85dcb8cb235
parent6451089478be28572a9908680cf2421656f9940e (diff)
1
-rw-r--r--.gitignore2
-rw-r--r--composer.json5
-rwxr-xr-xgit2rss13
3 files changed, 20 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7579f74
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+vendor
+composer.lock
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..c5c70e0
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,5 @@
+{
+ "require": {
+ "suin/php-rss-writer": "^1.5"
+ }
+}
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);