X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/23a77ad01b96149db5e07121c09481dd1c5d9b4a..4046ca0415407613a8e641945f4a77368dfe50a6:/index.plp?ds=sidebyside diff --git a/index.plp b/index.plp index 30e5864..a8b3a8f 100644 --- a/index.plp +++ b/index.plp @@ -1,21 +1,17 @@ <(common.inc.plp)><: - our $VERSION = 'v1.0'; -:> - - -
- -@@ -25,11 +21,23 @@ the following topics have been condensed into single pages of reference. Originally created by Mischa Poslawsky, but you're free to use, print, alter, and redistribute under the AGPL license.
+<: +my @format = ('--date=short', "--pretty=%ad (%ar)\t%s"); +if (open my $log, '-|', git => 'log', -1, @format) {{ + my $line = readline $log; + $line or next; # explicitly ignore empty input + my ($date, $subject) = split /[\t\n]/, $line; + $date =~ s/ \K// and $date .= ''; + print "Last update: $date $subject
\n"; +}} +:>