diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-27 14:03:39 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-27 14:03:39 +0200 |
commit | ec1833347808facb0cbdfa17260b4dd9dc0e39c6 (patch) | |
tree | 40161ff3ee3a4ab686628d38c2b7a85dcb8cb235 /git2rss | |
parent | 6451089478be28572a9908680cf2421656f9940e (diff) |
1
Diffstat (limited to 'git2rss')
-rwxr-xr-x | git2rss | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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); |