index: retrieve git log from cached text include
[sheet.git] / index.plp
index c2e939bc90b569f7cac2daeaf456a6567f30c00f..468e92731e84ec4d421f620895dd43416b61f340 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -15,6 +15,7 @@ Html({
                ' title="RSS feed of repository updates"',
                ' href="http://git.shiar.nl/sheet.git/rss">',
        ],
+       data => ['UPDATE'],
 });
 
 :>
@@ -28,8 +29,7 @@ Originally created by Mischa <span class="family-name">Poslawsky</span>,
 but you're free to use, print, alter, and redistribute under the AGPL license.
 </p>
 <:
-my @format = ('--date=short', "--pretty=%ad (%ar)\t%s");
-if (open my $log, '-|', git => 'log', -1, @format) {{
+if (open my $log, '<', 'UPDATE') {{
        my $line = readline $log;
        $line or next;  # explicitly ignore empty input
        EscapeHTML $line;