From: Namhyung Kim Date: Wed, 4 Jul 2012 02:47:25 +0000 (+0900) Subject: gitweb: Handle other types of tag in git_print_log X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/7032384573604a2afacace2b5d619c18049e7d09ad64e4d919fb2bb112b2e279?ds=inline gitweb: Handle other types of tag in git_print_log There are many types of tags used in S-o-b area [1]. Update the regex to handle them properly. It requires the tag should be started by a capital letter and ended by '-by: ' or '-By: '. The only exception is 'Cc: '. [1] http://lwn.net/Articles/503829/ Signed-off-by: Namhyung Kim Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 7ce2c8a..bfa2d79 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;