From d8d2b6c64a905c89f788372fbfdb0873ef29cb67 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 28 Mar 2017 11:14:20 +0200 Subject: order again --- git2rss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git2rss b/git2rss index 98e7c2d..4283b10 100755 --- a/git2rss +++ b/git2rss @@ -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) { -- cgit