From 3d1110aa72e4427e82e70563f734c74cd08fe98e Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Wed, 4 Jul 2012 11:47:25 +0900 Subject: [PATCH] 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 --- gitweb/gitweb.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index e4a26cbe05..0f8b6e2f2f 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4462,7 +4462,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; -- 2.11.4.GIT