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 <namhyung@kernel.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Namhyung Kim committed Jul 4, 2012 at 11:47 UTC 3d1110aa72e4427e82e70563f734c74cd08fe98e
1 file changed +1 -1
gitweb/gitweb.perl
+1 -1
@@ -4462,7 +4462,7 @@ sub git_print_log {
4462 # print log
4463 my $skip_blank_line = 0;
4464 foreach my $line (@$log) {
4465 - if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
4465 + if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) {
4466 if (! $opts{'-remove_signoff'}) {
4467 print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
4468 $skip_blank_line = 1;