X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/f79340dbeb55e76eeaf2b6fb1518cae466afcdf9..2e79f6a6a8fba18bcc39b5c866c3d1a84486f7d3:/index.plp diff --git a/index.plp b/index.plp index 50130f7..42ff251 100644 --- a/index.plp +++ b/index.plp @@ -1,18 +1,18 @@ <(common.inc.plp)><: - our $VERSION = 'v1.0'; -:> - - -
- -@@ -22,12 +22,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 or next; + my ($date, $subject) = split /[\t\n]/, $line; + $date =~ s/ \K// and $date .= ''; + print "Last update: $date $subject
\n"; +}} +:>