X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ce28a2bfea95452b19fd271e1a20d7aad1511211..5c6226f7284e7b0ce87825f4a90d083d03f94388:/index.plp diff --git a/index.plp b/index.plp index e8b3a0f..22f13df 100644 --- a/index.plp +++ b/index.plp @@ -56,3 +56,16 @@ but you're free to use, print, alter, and redistribute under the AGPL license. +<: +if (open my $log, '-|', 'git log -20 --since=2\ week\ ago --pretty=%ai%x00%s%x00%h') { + print "

Recent updates

\n\n"; + print "
\n"; + while (readline $log) { + chomp; + my ($date, $subject, $commit) = split /\0/, $_; + $date =~ s{( .+)}{$1}; + printf '
%s
%s
'."\n", $date, $subject; + } + print "
\n\n"; +} +