X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/28151a28db84c6d6018232f36c0003ecd562b3f0..ffd2c45cc0682bbf921ac6eae7e1c144ae24c1e0:/index.plp?ds=sidebyside diff --git a/index.plp b/index.plp index 096a6b5..f8a1938 100644 --- a/index.plp +++ b/index.plp @@ -1,23 +1,17 @@ <(common.inc.plp)><: - our $VERSION = 'v1.0'; -:> - - -
- -@@ -27,30 +21,54 @@ 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 .= ''; + say "Last update: $date $subject
"; +}} +:> + +