diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-28 11:14:20 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-28 11:14:20 +0200 |
commit | d8d2b6c64a905c89f788372fbfdb0873ef29cb67 (patch) | |
tree | d5ea25ea41d862c9072cc6eddb2d6a4b879156e6 | |
parent | a3ac9b01c4a7ec4ee86e6b38ce2e12ea1dc25617 (diff) |
order again
-rwxr-xr-x | git2rss | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -45,7 +45,6 @@ if (substr($entry['repo'], -4) != '.git') { } $short = substr($entry['hash'], 0, 7); printf("Welcome %s\n", $entry['commiter']); -echo "RSS new entry: ${entry['author']} pushed to ${entry['repo']} (${entry['head']},$short): ${entry['comment']}\n"; // Load previous changes if (file_exists(__DIR__ . '/git2rss.json')) { @@ -56,6 +55,8 @@ if (file_exists(__DIR__ . '/git2rss.json')) { $histo = array(); } +echo "RSS new entry: ${entry['author']} pushed to ${entry['repo']} (${entry['head']},$short): ${entry['comment']}\n"; + // 50 recent changes, and save $histo = array_merge([$entry], $histo); while (count($histo) > FEEDSIZE) { |