git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e03922
)
index: partial path prefix in git commit message
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 23 Jan 2024 23:00:45 +0000
(
00:00
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 11 Feb 2024 06:39:57 +0000
(07:39 +0100)
Link index at least for subpages such as keyboard/altgr/ipa.
index.plp
patch
|
blob
|
history
diff --git
a/index.plp
b/index.plp
index 022a2981b668cafa1cca8ecfca7a1a871a2351c8..690902542701d9eb01aea324ef1fc840ea901cfe 100644
(file)
--- a/
index.plp
+++ b/
index.plp
@@
-35,7
+35,9
@@
if (open my $log, '<', 'UPDATE') {{
EscapeHTML $line;
my ($date, $subject) = split /[\t\n]/, $line;
$date =~ s/ \K/<small>/ and $date .= '</small>';
- $subject =~ s{\A(\w+)(?=: )}{showlink($1, -e "$1.plp" && "/$1")}e;
+ $subject =~ s{\A (\w+) (?= (?:/\w+)* :\h )}{
+ showlink($1, -e "$1.plp" && "/$1");
+ }ex;
say "<p><strong>Last update</strong>: $date $subject</p>";
}}