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 <julien.rouhaud@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Julien Rouhaud committed
Jul 26, 2022 at 21:59 UTC
75707da4fa4105c174017d079786e5bba79a96f6
1 file changed
-17
gitweb/gitweb.perl
-17
@@ -3560,23 +3560,6 @@ sub parse_commit_text {
3560
$title =~ s/^ //;
3561
if ($title ne "") {
3562
$co{'title'} = chop_str($title, 80, 5);
3563
- # remove leading stuff of merges to make the interesting part visible
3564
- if (length($title) > 50) {
3565
- $title =~ s/^Automatic //;
3566
- $title =~ s/^merge (of|with) /Merge ... /i;
3567
- if (length($title) > 50) {
3568
- $title =~ s/(http|rsync):\/\///;
3569
- }
3570
- if (length($title) > 50) {
3571
- $title =~ s/(master|www|rsync)\.//;
3572
- }
3573
- if (length($title) > 50) {
3574
- $title =~ s/kernel.org:?//;
3575
- }
3576
- if (length($title) > 50) {
3577
- $title =~ s/\/pub\/scm//;
3578
- }
3579
- }
3563
$co{'title_short'} = chop_str($title, 50, 5);
3564
last;
3565
}