X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/6d265b373bd7b368a71f314a64b39c0ee8e056f424d02094747a96fdcb6a242f..ff1f840d039d8a7bf6c6e82c167723ddbbe694b7296c52fbaf4a365e87e98b21:/gitweb.perl
diff --git a/gitweb.perl b/gitweb.perl
index 7ce2c8a..78e04e4 100755
--- a/gitweb.perl
+++ b/gitweb.perl
@@ -4487,7 +4487,7 @@ sub git_print_log {
# print log
my $skip_blank_line = 0;
foreach my $line (@$log) {
- if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
+ if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) {
if (! $opts{'-remove_signoff'}) {
print "" . esc_html($line) . "
\n";
$skip_blank_line = 1;
@@ -4495,6 +4495,16 @@ sub git_print_log {
next;
}
+ if ($line =~ m,\s*([a-z]*link): (https?://\S+),i) {
+ if (! $opts{'-remove_signoff'}) {
+ print "" . esc_html($1) . ": " .
+ "" . esc_html($2) . "" .
+ "
\n";
+ $skip_blank_line = 1;
+ }
+ next;
+ }
+
# print only one empty line
# do not print empty line after signoff
if ($line eq "") {