From: Julien Rouhaud Date: Tue, 26 Jul 2022 13:59:11 +0000 (+0800) Subject: gitweb: remove title shortening heuristics X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/HEAD?hp=9c648e20c91f37cf166bdd57a3ee4257fe971d92f77576d0d09843e9c3a1f581 gitweb: remove title shortening heuristics Those heuristics are way outdated and too specific to the kernel project to be useful outside of kernel.org. Since kernel.org doesn't use gitweb anymore and at least one project complained about incorrect behavior, entirely remove them. Signed-off-by: Julien Rouhaud Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 5d5401f..8c96a1d 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3561,23 +3561,6 @@ sub parse_commit_text { $title =~ s/^ //; if ($title ne "") { $co{'title'} = chop_str($title, 80, 5); - # remove leading stuff of merges to make the interesting part visible - if (length($title) > 50) { - $title =~ s/^Automatic //; - $title =~ s/^merge (of|with) /Merge ... /i; - if (length($title) > 50) { - $title =~ s/(http|rsync):\/\///; - } - if (length($title) > 50) { - $title =~ s/(master|www|rsync)\.//; - } - if (length($title) > 50) { - $title =~ s/kernel.org:?//; - } - if (length($title) > 50) { - $title =~ s/\/pub\/scm//; - } - } $co{'title_short'} = chop_str($title, 50, 5); last; }